Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static void smk_net4addr_insert(struct smk_net4addr *new)

Type:void

Parameter:

TypeParameterName
struct smk_net4addr *new
1083  If list_empty - tests whether a list is empty*@head: the list to test. Then
1084  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
1085  Return
1088  m = list_entry_rcu - get the struct for this entry*@ptr: the &struct list_head pointer(next, structsmk_net4addr, list)
1092  If mask size > mask size Then
1093  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
1094  Return
1100  Return
1102  m_next = list_entry_rcu - get the struct for this entry*@ptr: the &struct list_head pointer(next, structsmk_net4addr, list)
1104  If mask size > mask size Then
1106  Return
Caller
NameDescribe
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