函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\cred.h Create Date:2022-07-27 06:42:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:get_cred_rcu

函数原型:static inline const struct cred *get_cred_rcu(const struct cred *cred)

返回类型:struct cred

参数:

类型参数名称
const struct cred *cred
259  nonconst_cred等于cred
260  如果非cred则返回:NULL
262  如果非atomic_inc_not_zero - increment unless the number is zero*@v: pointer of type atomic_t* Atomically increments @v by 1, if @v is non-zero.* Returns true if the increment was done.则返回:NULL
264  validate_creds(cred)
265  Can we skip RCU deletion? 等于0
266  返回:cred
调用者
名称描述
get_task_credget_task_cred - Get another task's objective credentials*@task: The task to query* Get the objective credentials of a task, pinning them so that they can't go* away