__aa_find_or_create_ns(9)
β¨ __aa_find_or_create_ns(9) β¨
okay so bestie, this is from the Kernel API Manual, and the function is literally __aa_find_or_create_ns β it's giving βcreate an ns, fail if it already existsβ energy. π¦
πΈ NAME πΈ
__aa_find_or_create_ns β create an ns, fail if it already exists. no cap, that's the whole vibe. π
π¦ SYNOPSIS π¦
struct aa_ns * __aa_find_or_create_ns (struct aa_ns *parent , const char
*name , struct dentry *dir );
π ARGUMENTS π
parentβ the parent of the namespace being created. πnameβ the name of the namespace. πdirβ if it's notnull, this is the dir to put the ns entries in. ποΈ
π₯ RETURN π₯
You get back the a refcounted ns that has been add or an ERR_PTR. That's the return, bestie β iconic wording, honestly. π
π SEE ALSO π
Kernel file ./security/apparmor/policy_ns.c β go read it, iykyk:
aa_ns_visible(9)aa_ns_name(9)alloc_ns(9)aa_free_ns(9)__aa_lookupn_ns(9)aa_lookupn_ns(9)aa_prepare_ns(9)destroy_ns(9)__aa_remove_ns(9)__ns_list_release(9)aa_alloc_root_ns(9)
mwah π β source/version: ./security/apparmor; date: October 2026; icon: __aa_find_or_create_ns(9). periodt. π«Ά
π¦ 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