Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\cred.h Create Date:2022-07-28 05:40:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_cred_rcu

Proto:static inline const struct cred *get_cred_rcu(const struct cred *cred)

Type:struct cred

Parameter:

TypeParameterName
const struct cred *cred
259  nonconst_cred = cred
260  If Not cred Then Return NULL
262  If Not 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. Then Return NULL
264  validate_creds(cred)
265  Can we skip RCU deletion? = 0
266  Return cred
Caller
NameDescribe
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