Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\pid.c Create Date:2022-07-28 09:28:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pid_idr_init

Proto:void __init pid_idr_init(void)

Type:void

Parameter:Nothing

567  BUILD_BUG_ON - break compile if a condition is true(A maximum of 4 million PIDs should be enough for a while.* [NOTE: PID/TIDs are limited to 2^29 ~= 500+ million, see futex.h.] >= PIDNS_ADDING)
570  pid_max = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(pid_max_max, max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, pid_max, Define a minimum number of pids per cpu. Heuristically based* on original pid max of 32k for 32 cpus. Also, increase the* minimum settable value for pid_max on the running system based* on similar defaults. See kernel/pid.c:pidmap_init() for details. * num_possible_cpus()))
572  pid_max_min = max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, pid_max_min, PIDS_PER_CPU_MIN * num_possible_cpus())
574  pr_info("pid_max: default: %u minimum: %u\n", pid_max, pid_max_min)
576  dr_init() - Initialise an IDR.*@idr: IDR handle.* Initialise a dynamically allocated IDR. To initialise a* statically allocated IDR, use DEFINE_IDR().
578  pid_cachep = Please use this macro to create slab caches. Simply specify the* name of the structure and maybe some flags that are listed above.* The alignment of the struct determines object alignment. If you* f(pid, Align objs on cache lines | Panic if kmem_cache_create() fails | SLAB_ACCOUNT)