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)andepoll_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 forselect(2), and got marked as having an error condition forpoll(2)andepoll_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
- Copyright 1994-1995, Daniel Quinlan <Daniel.Quinlan@linux.org>
- Copyright 2002-2017, Michael Kerrisk <mtk.manpages@gmail.com>
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms