pid.c (f26e8817b235d8764363bffcc9cbfc61867371f2) | pid.c (1e24edca0557dba6486d39d3c24c288475432bcf) |
---|---|
1/* 2 * Generic pidhash and scalable, time-bounded PID allocator 3 * 4 * (C) 2002-2003 Nadia Yvette Chambers, IBM 5 * (C) 2004 Nadia Yvette Chambers, Oracle 6 * (C) 2002-2004 Ingo Molnar, Red Hat 7 * 8 * pid-structures are backing objects for tasks sharing a given ID to chain --- 54 unchanged lines hidden (view full) --- 63 64/* 65 * PID-map pages start out as NULL, they get allocated upon 66 * first use and are never deallocated. This way a low pid_max 67 * value does not cause lots of bitmaps to be allocated, but 68 * the scheme scales to up to 4 million PIDs, runtime. 69 */ 70struct pid_namespace init_pid_ns = { | 1/* 2 * Generic pidhash and scalable, time-bounded PID allocator 3 * 4 * (C) 2002-2003 Nadia Yvette Chambers, IBM 5 * (C) 2004 Nadia Yvette Chambers, Oracle 6 * (C) 2002-2004 Ingo Molnar, Red Hat 7 * 8 * pid-structures are backing objects for tasks sharing a given ID to chain --- 54 unchanged lines hidden (view full) --- 63 64/* 65 * PID-map pages start out as NULL, they get allocated upon 66 * first use and are never deallocated. This way a low pid_max 67 * value does not cause lots of bitmaps to be allocated, but 68 * the scheme scales to up to 4 million PIDs, runtime. 69 */ 70struct pid_namespace init_pid_ns = { |
71 .kref = { 72 .refcount = ATOMIC_INIT(2), 73 }, | 71 .kref = KREF_INIT(2), |
74 .pidmap = { 75 [ 0 ... PIDMAP_ENTRIES-1] = { ATOMIC_INIT(BITS_PER_PAGE), NULL } 76 }, 77 .last_pid = 0, 78 .nr_hashed = PIDNS_HASH_ADDING, 79 .level = 0, 80 .child_reaper = &init_task, 81 .user_ns = &init_user_ns, --- 527 unchanged lines hidden --- | 72 .pidmap = { 73 [ 0 ... PIDMAP_ENTRIES-1] = { ATOMIC_INIT(BITS_PER_PAGE), NULL } 74 }, 75 .last_pid = 0, 76 .nr_hashed = PIDNS_HASH_ADDING, 77 .level = 0, 78 .child_reaper = &init_task, 79 .user_ns = &init_user_ns, --- 527 unchanged lines hidden --- |