Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\ibpkey.c Create Date:2022-07-28 19:10:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sel_ib_pkey_insert - Insert a new pkey into the table*@pkey: the new pkey record* Description:* Add a new pkey record to the hash table.

Proto:static void sel_ib_pkey_insert(struct sel_ib_pkey *pkey)

Type:void

Parameter:

TypeParameterName
struct sel_ib_pkey *pkey
101  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.
102  list_add_rcu - add a new entry to rcu-protected list*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head
103  If size == SEL_PKEY_HASH_BKT_LIMIT Then
106  tail = list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(cu_dereference_protected() - fetch RCU pointer when updates prevented*@p: The pointer to read, prior to dereferencing*@c: The conditions under which the dereference will take place* Return the value of the specified RCU-protected pointer, but omit(prev, lockdep_is_held( & sel_ib_pkey_lock)), structsel_ib_pkey, list)
111  list_del_rcu - deletes entry from list without re-initialization*@entry: the element to delete from the list
112  kfree_rcu() - kfree an object after a grace period(tail, rcu)
113  Else
114  size++
Caller
NameDescribe
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