Lines Matching refs:avc_cache

71 struct avc_cache {  struct
91 struct avc_cache avc_cache; argument
102 INIT_HLIST_HEAD(&selinux_avc.avc_cache.slots[i]); in selinux_avc_init()
103 spin_lock_init(&selinux_avc.avc_cache.slots_lock[i]); in selinux_avc_init()
105 atomic_set(&selinux_avc.avc_cache.active_nodes, 0); in selinux_avc_init()
106 atomic_set(&selinux_avc.avc_cache.lru_hint, 0); in selinux_avc_init()
154 head = &selinux_avc.avc_cache.slots[i]; in avc_get_hash_stats()
169 atomic_read(&selinux_avc.avc_cache.active_nodes), in avc_get_hash_stats()
435 atomic_dec(&selinux_avc.avc_cache.active_nodes); in avc_node_delete()
443 atomic_dec(&selinux_avc.avc_cache.active_nodes); in avc_node_kill()
450 atomic_dec(&selinux_avc.avc_cache.active_nodes); in avc_node_replace()
462 hvalue = atomic_inc_return(&selinux_avc.avc_cache.lru_hint) & in avc_reclaim_node()
464 head = &selinux_avc.avc_cache.slots[hvalue]; in avc_reclaim_node()
465 lock = &selinux_avc.avc_cache.slots_lock[hvalue]; in avc_reclaim_node()
499 if (atomic_inc_return(&selinux_avc.avc_cache.active_nodes) > in avc_alloc_node()
522 head = &selinux_avc.avc_cache.slots[hvalue]; in avc_search_node()
569 if (seqno < selinux_avc.avc_cache.latest_notif) { in avc_latest_notif_update()
571 seqno, selinux_avc.avc_cache.latest_notif); in avc_latest_notif_update()
575 if (seqno > selinux_avc.avc_cache.latest_notif) in avc_latest_notif_update()
576 selinux_avc.avc_cache.latest_notif = seqno; in avc_latest_notif_update()
623 head = &selinux_avc.avc_cache.slots[hvalue]; in avc_insert()
624 lock = &selinux_avc.avc_cache.slots_lock[hvalue]; in avc_insert()
844 head = &selinux_avc.avc_cache.slots[hvalue]; in avc_update_node()
845 lock = &selinux_avc.avc_cache.slots_lock[hvalue]; in avc_update_node()
928 head = &selinux_avc.avc_cache.slots[i]; in avc_flush()
929 lock = &selinux_avc.avc_cache.slots_lock[i]; in avc_flush()
1200 return selinux_avc.avc_cache.latest_notif; in avc_policy_seqno()