函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static struct sel_ib_pkey *sel_ib_pkey_find(u64 subnet_prefix, u16 pkey_num)

返回类型:struct sel_ib_pkey

参数:

类型参数名称
u64subnet_prefix
u16pkey_num
76  idx等于sel_ib_pkey_hashfn - Hashing function for the pkey table*@pkey: pkey number* Description:* This is the hashing function for the pkey table, it returns the bucket* number for the given pkey.
78  如果 PKey number 恒等于pkey_num Port subnet prefix 恒等于subnet_prefix则返回:pkey
83  返回:NULL
调用者
名称描述
sel_ib_pkey_sid_slowsel_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
sel_ib_pkey_sidsel_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