函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smk_net4addr_insert*@new : netlabel to insert* This helper insert netlabel in the smack_net4addrs list* sorted by netmask length (longest to smallest)* locked by &smk_net4addr_lock in smk_write_net4addr

函数原型:static void smk_net4addr_insert(struct smk_net4addr *new)

返回类型:void

参数:

类型参数名称
struct smk_net4addr *new
1083  如果链表为空
1084  添加RCU保护项
1085  返回
1088  m等于list_entry_rcu - get the struct for this entry*@ptr: the &struct list_head pointer(链表后项, structsmk_net4addr, list)
1092  如果mask size 大于mask size
1093  添加RCU保护项
1094  返回
1098  如果检查是否为链表尾
1100  返回
1102  m_next等于list_entry_rcu - get the struct for this entry*@ptr: the &struct list_head pointer(链表后项, structsmk_net4addr, list)
1104  如果mask size 大于mask size
1106  返回
调用者
名称描述
smk_write_net4addrsmk_write_net4addr - write() for /smack/netlabel*@file: file pointer, not actually used*@buf: where to get the data from*@count: bytes sent*@ppos: where to start* Accepts only one net4addr per write call