函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Find a keyring with the specified name

函数原型:struct key *find_keyring_by_name(const char *name, bool uid_keyring)

返回类型:struct key

参数:

类型参数名称
const char *name
booluid_keyring
1145  ns等于current_user_ns()
1148  如果非name则返回:错误号
1151  read_lock( & keyring_name_lock)
1157  如果非kuid_has_mapping(ns, uid)则继续下一循环
1160  如果st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则继续下一循环
1163  如果字符串比较不等于0则继续下一循环
1166  如果uid_keyring
1167  如果非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则继续下一循环
1170  否则
1171  如果Check to see whether permission is granted to use a key in the desired way.小于0则继续下一循环
1179  如果非_inc_not_zero - increment a refcount unless it is 0*@r: the refcount to increment* Similar to atomic_inc_not_zero(), but will saturate at REFCOUNT_SATURATED* and WARN.* Provides no memory ordering, it is assumed the caller has guaranteed the则继续下一循环
1181  last time used for LRU keyring discard 等于ktime_get_real_seconds - Get the seconds portion of CLOCK_REALTIME* Returns the wall clock seconds since 1970. This replaces the* get_seconds() interface which is not y2038 safe on 32bit systems.
1182  转到:out
1185  keyring等于错误号
1186  out :
1187  read_unlock( & keyring_name_lock)
1188  返回:keyring
调用者
名称描述
join_session_keyringJoin the named keyring as the session keyring if possible else attempt to* create a new one of that name and join that