函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smk_net6addr_insert*@new : entry to insert* This inserts an entry in the smack_net6addrs list* sorted by netmask length (longest to smallest)* locked by &smk_net6addr_lock in smk_write_net6addr

函数原型:static void smk_net6addr_insert(struct smk_net6addr *new)

返回类型:void

参数:

类型参数名称
struct smk_net6addr *new
1347  如果链表为空
1348  添加RCU保护项
1349  返回
1352  m等于list_entry_rcu - get the struct for this entry*@ptr: the &struct list_head pointer(链表后项, structsmk_net6addr, list)
1355  如果mask size 大于mask size
1356  添加RCU保护项
1357  返回
1361  如果检查是否为链表尾
1363  返回
1365  m_next等于list_entry_rcu - get the struct for this entry*@ptr: the &struct list_head pointer(链表后项, structsmk_net6addr, list)
1367  如果mask size 大于mask size
1369  返回
调用者
名称描述
smk_write_net6addrsmk_write_net6addr - 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 net6addr per write call