Debian Codegraph @

upstream/debian-unstable/man5/proc_pid_mounts.5

raw
1 .\" Copyright 1994-1995, Daniel Quinlan <[email protected]>
2 .\" Copyright 2002-2017, Michael Kerrisk <[email protected]>
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: GPL-3.0-or-later
6 .\"
7 .TH proc_pid_mounts 5 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 /proc/pid/mounts \- mounted filesystems
10 .SH DESCRIPTION
11 .TP
12 .IR /proc/ pid /mounts " (since Linux 2.4.19)"
13 This file lists all the filesystems currently mounted in the
14 process's mount namespace (see
15 .BR mount_namespaces (7)).
16 The format of this file is documented in
17 .BR fstab (5).
18 .IP
19 Since Linux 2.6.15, this file is pollable:
20 after opening the file for reading, a change in this file
21 (i.e., a filesystem mount or unmount) causes
22 .BR select (2)
23 to mark the file descriptor as having an exceptional condition, and
24 .BR poll (2)
25 and
26 .BR epoll_wait (2)
27 mark the file as having a priority event
28 .RB ( POLLPRI ).
29 (Before Linux 2.6.30,
30 a change in this file was indicated by the file descriptor
31 being marked as readable for
32 .BR select (2),
33 and being marked as having an error condition for
34 .BR poll (2)
35 and
36 .BR epoll_wait (2).)
37 .TP
38 .I /proc/mounts
39 Before Linux 2.4.19, this file was a list
40 of all the filesystems currently mounted on the system.
41 With the introduction of per-process mount namespaces in Linux 2.4.19 (see
42 .BR mount_namespaces (7)),
43 this file became a link to
44 .IR /proc/self/mounts ,
45 which lists the mounts of the process's own mount namespace.
46 The format of this file is documented in
47 .BR fstab (5).
48 .SH SEE ALSO
49 .BR proc (5)