函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smk_insert_entry - insert a smack label into a hash map,* this function must be called under smack_known_lock

函数原型:void smk_insert_entry(struct smack_known *skp)

返回类型:void

参数:

类型参数名称
struct smack_known *skp
407  hash等于Version 2: One word (32 or 64 bits) at a time.* If CONFIG_DCACHE_WORD_ACCESS is defined (meaning * exists, which describes major Linux platforms like x86 and ARM), then* this computes a different hash function much faster.
408  head等于smack_known_hash[hash & (SMACK_HASH_SLOTS - 1)]
410  添加哈希记录
411  添加RCU保护项
调用者
名称描述
init_smack_known_list
smk_import_entrysmk_import_entry - import a label, return the list entry*@string: a text string that might be a Smack label*@len: the maximum size, or zero if it is NULL terminated