函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sel_ib_pkey_sid - Lookup the SID of a PKEY*@subnet_prefix: subnet_prefix*@pkey_num: pkey number*@sid: pkey SID* Description:* This function determines the SID of a PKEY using the fastest method* possible

函数原型:int sel_ib_pkey_sid(u64 subnet_prefix, u16 pkey_num, unsigned int *sid)

返回类型:int

参数:

类型参数名称
u64subnet_prefix
u16pkey_num
unsigned int *sid
184  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
185  pkey等于sel_ib_pkey_find - Search for a pkey record*@subnet_prefix: subnet_prefix*@pkey_num: pkey_num* Description:* Search the pkey table and return the matching record. If an entry* can not be found in the table return NULL.
186  如果pkey
187  sid等于 SID of pkey
188  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
189  返回:0
191  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
193  返回:sel_ib_pkey_sid_slow - Lookup the SID of a pkey using the policy*@subnet_prefix: subnet prefix*@pkey_num: pkey number*@sid: pkey SID* Description:* This function determines the SID of a pkey by querying the security* policy