Lines Matching refs:avc_cache
68 struct avc_cache { struct
88 struct avc_cache avc_cache; argument
99 INIT_HLIST_HEAD(&selinux_avc.avc_cache.slots[i]); in selinux_avc_init()
100 spin_lock_init(&selinux_avc.avc_cache.slots_lock[i]); in selinux_avc_init()
102 atomic_set(&selinux_avc.avc_cache.active_nodes, 0); in selinux_avc_init()
103 atomic_set(&selinux_avc.avc_cache.lru_hint, 0); in selinux_avc_init()
161 head = &avc->avc_cache.slots[i]; in avc_get_hash_stats()
176 atomic_read(&avc->avc_cache.active_nodes), in avc_get_hash_stats()
442 atomic_dec(&avc->avc_cache.active_nodes); in avc_node_delete()
450 atomic_dec(&avc->avc_cache.active_nodes); in avc_node_kill()
458 atomic_dec(&avc->avc_cache.active_nodes); in avc_node_replace()
470 hvalue = atomic_inc_return(&avc->avc_cache.lru_hint) & in avc_reclaim_node()
472 head = &avc->avc_cache.slots[hvalue]; in avc_reclaim_node()
473 lock = &avc->avc_cache.slots_lock[hvalue]; in avc_reclaim_node()
507 if (atomic_inc_return(&avc->avc_cache.active_nodes) > in avc_alloc_node()
531 head = &avc->avc_cache.slots[hvalue]; in avc_search_node()
580 if (seqno < avc->avc_cache.latest_notif) { in avc_latest_notif_update()
582 seqno, avc->avc_cache.latest_notif); in avc_latest_notif_update()
586 if (seqno > avc->avc_cache.latest_notif) in avc_latest_notif_update()
587 avc->avc_cache.latest_notif = seqno; in avc_latest_notif_update()
637 head = &avc->avc_cache.slots[hvalue]; in avc_insert()
638 lock = &avc->avc_cache.slots_lock[hvalue]; in avc_insert()
880 head = &avc->avc_cache.slots[hvalue]; in avc_update_node()
881 lock = &avc->avc_cache.slots_lock[hvalue]; in avc_update_node()
960 head = &avc->avc_cache.slots[i]; in avc_flush()
961 lock = &avc->avc_cache.slots_lock[i]; in avc_flush()
1210 return state->avc->avc_cache.latest_notif; in avc_policy_seqno()