aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/generic.c')
-rw-r--r--fs/proc/generic.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c
index 5d2989e9dcc1..8c68bbe2b61e 100644
--- a/fs/proc/generic.c
+++ b/fs/proc/generic.c
@@ -307,6 +307,21 @@ static DEFINE_SPINLOCK(proc_inum_lock); /* protects the above */
307/* 307/*
308 * Return an inode number between PROC_DYNAMIC_FIRST and 308 * Return an inode number between PROC_DYNAMIC_FIRST and
309 * 0xffffffff, or zero on failure. 309 * 0xffffffff, or zero on failure.
310 *
311 * Current inode allocations in the proc-fs (hex-numbers):
312 *
313 * 00000000 reserved
314 * 00000001-00000fff static entries (goners)
315 * 001 root-ino
316 *
317 * 00001000-00001fff unused
318 * 0001xxxx-7fffxxxx pid-dir entries for pid 1-7fff
319 * 80000000-efffffff unused
320 * f0000000-ffffffff dynamic entries
321 *
322 * Goal:
323 * Once we split the thing into several virtual filesystems,
324 * we will get rid of magical ranges (and this comment, BTW).
310 */ 325 */
311static unsigned int get_inode_number(void) 326static unsigned int get_inode_number(void)
312{ 327{