proc_pid_mounts(5)

๐Ÿ’– proc_pid_mounts โ€” like, the manual page, bestie ๐Ÿ’–

okay so this is a page from the File Formats Manual โ€” it's the proc_pid_mounts(5) situation and honestly? it's giving filesystem gossip and i'm obsessed. let's get into it ๐Ÿซถ


โœจ NAME โœจ

/proc/pid/mounts โ€” the mounted filesystems, periodt ๐Ÿ’…


๐ŸŒธ DESCRIPTION ๐ŸŒธ

๐ŸŽ€ /proc/pid/mounts (since Linux 2.4.19)

okay bestie, so this file right here? it lists all the filesystems currently mounted in the process's mount namespace โ€” yes, the whole namespace thing, go check mount_namespaces(7) if you're new here ๐Ÿฆ‹

and the format of this file? it's documented in fstab(5). like, literally the exact same format. iykyk โœจ

๐Ÿ”ฅ the pollable era (since Linux 2.6.15)

not me being able to poll this file ๐Ÿ˜ญ since Linux 2.6.15 this file is pollable โ€” here's the tea:

after you open the file for reading, if something changes in this file (i.e., a filesystem mount or unmount happens), then:

  • select(2) marks the file descriptor as having an exceptional condition ๐Ÿ‘€
  • poll(2) and epoll_wait(2) mark the file as having a priority event (POLLPRI) ๐Ÿ’…
๐Ÿ•ฐ๏ธ throwback moment: before Linux 2.6.30, a change in this file was signalled differently โ€” the file descriptor got marked as readable for select(2), and got marked as having an error condition for poll(2) and epoll_wait(2). different vibe, same drama ๐Ÿ’€

๐Ÿฆ‹ /proc/mounts

so before Linux 2.4.19, this file was just a list of all the filesystems currently mounted on the system. simple. unbothered. iconic โœจ

but then per-process mount namespaces got introduced in Linux 2.4.19 (see mount_namespaces(7) โ€” go read it ๐ŸŒˆ), and this file became a link to /proc/self/mounts, which lists the mounts of the process's own mount namespace. main character energy only, no cap ๐Ÿ‘‘

and yep, the format of this file is documented in fstab(5) too. consistency, we love to see it ๐Ÿ’œ


โญ SEE ALSO โญ


and that's the whole page bestie, no notes ๐Ÿ’– tysm for reading, mwah ๐ŸŽ€

this was brought to you by Linux man-pages 6.20, dated 2026-02-08 โ€” proc_pid_mounts(5), slay โœจ๐ŸŒธ

๐Ÿ“ฆ where this page comes from
  • arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • nixpkgs unstable: man-pages 6.20
  • ๐Ÿ“œ the page's license: GPL-3.0-or-later
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms