| Function report | 
| Source Code: security\selinux\avc.c | Create Date:2022-07-28 18:43:24 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:avc_reclaim_node
Proto:static inline int avc_reclaim_node(struct selinux_avc *avc)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct selinux_avc * | avc | 
| 469 | When try < AVC_CACHE_SLOTS cycle | 
| 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 | If Not spin_trylock_irqsave(lock, flags) Then Continue | 
| 480 | avc_node_delete(avc, node) | 
| 482 | ecx++ | 
| 483 | If ecx >= AVC_CACHE_RECLAIM Then | 
| 490 | spin_unlock_irqrestore(lock, flags) | 
| 492 | out : | 
| 493 | Return ecx | 
| Name | Describe | 
|---|---|
| avc_alloc_node | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |