__aa_lookupn_ns(9)
Okay bestie, this is the __aa_lookupn_ns(9) page from the Kernel API Manual, and itβs giving βfind that namespaceβ main-character energy β¨
π NAME π
__aa_lookupn_ns β lookup the namespace matching @hname. Thatβs the whole vibe: you got a hierarchical name, you want the ns. Slay.
π¦ SYNOPSIS π¦
struct aa_ns * __aa_lookupn_ns (struct aa_ns *view , const char *hname ,
size_t n );
π ARGUMENTS π
viewβ namespace to search in (NOT NULL). Like, you need a place to look, bestie.hnameβ hierarchical ns name (NOT NULL). The name has layers, itβs giving tree.nβ length ofhname. Yes, she needs the length.
πΈ DESCRIPTION πΈ
Requires: rcu_read_lock be held. Not optional. No cap.
It does a relative name lookup, recursing through profile tree. Thatβs it β cute little recursive search through the tree.
π₯ RETURN π₯
It returns an unrefcounted ns pointer, or NULL if not found. Unrefcounted is the keyword, okay? Pay attention to that.
π SEE ALSO π
- Kernel file
./security/apparmor/policy_ns.c aa_ns_visible(9)aa_ns_name(9)alloc_ns(9)aa_free_ns(9)aa_lookupn_ns(9)__aa_find_or_create_ns(9)aa_prepare_ns(9)destroy_ns(9)__aa_remove_ns(9)__ns_list_release(9)aa_alloc_root_ns(9)
Mwah π β this pageβs source is ./security/apparmor, and itβs dated October 2026. Bye bestie, go look up those namespaces and absolutely ate π«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms