avc_cache 125 security/selinux/avc.c static struct avc_cache avc_cache; avc_cache 235 security/selinux/avc.c INIT_LIST_HEAD(&avc_cache.slots[i]); avc_cache 236 security/selinux/avc.c spin_lock_init(&avc_cache.slots_lock[i]); avc_cache 238 security/selinux/avc.c atomic_set(&avc_cache.active_nodes, 0); avc_cache 239 security/selinux/avc.c atomic_set(&avc_cache.lru_hint, 0); avc_cache 257 security/selinux/avc.c if (!list_empty(&avc_cache.slots[i])) { avc_cache 260 security/selinux/avc.c list_for_each_entry_rcu(node, &avc_cache.slots[i], list) avc_cache 271 security/selinux/avc.c atomic_read(&avc_cache.active_nodes), avc_cache 286 security/selinux/avc.c atomic_dec(&avc_cache.active_nodes); avc_cache 293 security/selinux/avc.c atomic_dec(&avc_cache.active_nodes); avc_cache 300 security/selinux/avc.c atomic_dec(&avc_cache.active_nodes); avc_cache 310 security/selinux/avc.c hvalue = atomic_inc_return(&avc_cache.lru_hint) & (AVC_CACHE_SLOTS - 1); avc_cache 312 security/selinux/avc.c if (!spin_trylock_irqsave(&avc_cache.slots_lock[hvalue], flags)) avc_cache 316 security/selinux/avc.c list_for_each_entry(node, &avc_cache.slots[hvalue], list) { avc_cache 324 security/selinux/avc.c spin_unlock_irqrestore(&avc_cache.slots_lock[hvalue], flags); avc_cache 330 security/selinux/avc.c spin_unlock_irqrestore(&avc_cache.slots_lock[hvalue], flags); avc_cache 349 security/selinux/avc.c if (atomic_inc_return(&avc_cache.active_nodes) > avc_cache_threshold) avc_cache 370 security/selinux/avc.c list_for_each_entry_rcu(node, &avc_cache.slots[hvalue], list) { avc_cache 431 security/selinux/avc.c if (seqno < avc_cache.latest_notif) { avc_cache 433 security/selinux/avc.c seqno, avc_cache.latest_notif); avc_cache 437 security/selinux/avc.c if (seqno > avc_cache.latest_notif) avc_cache 438 security/selinux/avc.c avc_cache.latest_notif = seqno; avc_cache 476 security/selinux/avc.c spin_lock_irqsave(&avc_cache.slots_lock[hvalue], flag); avc_cache 477 security/selinux/avc.c list_for_each_entry(pos, &avc_cache.slots[hvalue], list) { avc_cache 485 security/selinux/avc.c list_add_rcu(&node->list, &avc_cache.slots[hvalue]); avc_cache 487 security/selinux/avc.c spin_unlock_irqrestore(&avc_cache.slots_lock[hvalue], flag); avc_cache 763 security/selinux/avc.c spin_lock_irqsave(&avc_cache.slots_lock[hvalue], flag); avc_cache 765 security/selinux/avc.c list_for_each_entry(pos, &avc_cache.slots[hvalue], list) { avc_cache 809 security/selinux/avc.c spin_unlock_irqrestore(&avc_cache.slots_lock[hvalue], flag); avc_cache 826 security/selinux/avc.c spin_lock_irqsave(&avc_cache.slots_lock[i], flag); avc_cache 832 security/selinux/avc.c list_for_each_entry(node, &avc_cache.slots[i], list) avc_cache 835 security/selinux/avc.c spin_unlock_irqrestore(&avc_cache.slots_lock[i], flag); avc_cache 948 security/selinux/avc.c return avc_cache.latest_notif;