Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:avc_flush - Flush the cache

Proto:static void avc_flush(struct selinux_avc *avc)

Type:void

Parameter:

TypeParameterName
struct selinux_avc *avc
943  When i < AVC_CACHE_SLOTS cycle
944  head = head for avc_node->list [i]
945  lock = lock for writes [i]
947  spin_lock_irqsave(lock, flag)
952  _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
953  hlist_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the hlist_node within the struct.(node, head, list)
954  avc_node_delete(avc, node)
955  _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()
956  spin_unlock_irqrestore(lock, flag)
Caller
NameDescribe
avc_ss_resetavc_ss_reset - Flush the cache and revalidate migrated permissions.*@seqno: policy sequence number
avc_disable