函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\pid_namespace.c Create Date:2022-07-27 12:22:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:reates the kmem cache to allocate pids from.*@level: pid namespace level

函数原型:static struct kmem_cache *create_pid_cachep(unsigned int level)

返回类型:struct kmem_cache

参数:

类型参数名称
unsigned intlevel
40  pkc等于Write once array, filled from the beginning. [level - 1]
45  kc等于READ_ONCE( * pkc)
46  如果kc则返回:kc
49  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
50  len等于sizeof(structpid)加levelsizeof(structupid)
51  mutex_lock( & pid_caches_mutex)
53  如果非pkcpkc等于创建高速缓存区
55  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
57  返回:READ_ONCE( * pkc)
调用者
名称描述
create_pid_namespace