函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__put_cred - Destroy a set of credentials*@cred: The record to release* Destroy a set of credentials on which no references remain.

函数原型:void __put_cred(struct cred *cred)

返回类型:void

参数:

类型参数名称
struct cred *cred
134  kdebug("__put_cred(%p{%d,%d})", cred, atomic_read( & usage), read_cred_subscribers(cred))
138  BUG_ON(atomic_read( & usage) != 0)
144  BUG_ON(cred == cred)
145  BUG_ON(cred == real_cred)
147  如果 Can we skip RCU deletion? The RCU callback to actually dispose of a set of credentials
149  否则Exported common interfaces
调用者
名称描述
put_credput_cred - Release a reference to a set of credentials*@cred: The credentials to release* Release a reference to a set of credentials, deleting them when the last ref* is released