Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:avc_get_hash_stats

Proto:int avc_get_hash_stats(struct selinux_avc *avc, char *page)

Type:int

Parameter:

TypeParameterName
struct selinux_avc *avc
char *page
156  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
158  slots_used = 0
159  max_chain_len = 0
160  When i < AVC_CACHE_SLOTS cycle
161  head = head for avc_node->list [i]
162  If Not hlist_empty(head) Then
163  slots_used++
164  chain_len = 0
166  chain_len++
172  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
174  Return scnprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
Caller
NameDescribe
sel_read_avc_hash_stats