函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:avc_reclaim_node

函数原型:static inline int avc_reclaim_node(struct selinux_avc *avc)

返回类型:int

参数:

类型参数名称
struct selinux_avc *avc
469 try小于AVC_CACHE_SLOTS循环
470  hvalue等于atomic_inc_return( & LRU hint for reclaim scan )按位与AVC_CACHE_SLOTS减1
472  head等于 head for avc_node->list [hvalue]
473  lock等于 lock for writes [hvalue]
475  如果非spin_trylock_irqsave(lock, flags)则继续下一循环
478  _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
480  avc_node_delete(avc, node)
481  avc_cache_stats_incr(reclaims)
482  ecx自加
483  如果ecx大于等于AVC_CACHE_RECLAIM
486  转到:out
489  _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()
490  spin_unlock_irqrestore(lock, flags)
492  out :
493  返回:ecx
调用者
名称描述
avc_alloc_node