Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static void smk_net6addr_insert(struct smk_net6addr *new)

Type:void

Parameter:

TypeParameterName
struct smk_net6addr *new
1347  If list_empty - tests whether a list is empty*@head: the list to test. Then
1348  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
1349  Return
1352  m = list_entry_rcu - get the struct for this entry*@ptr: the &struct list_head pointer(next, structsmk_net6addr, list)
1355  If mask size > mask size Then
1356  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
1357  Return
1363  Return
1365  m_next = list_entry_rcu - get the struct for this entry*@ptr: the &struct list_head pointer(next, structsmk_net6addr, list)
1367  If mask size > mask size Then
1369  Return
Caller
NameDescribe
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