aa_get_ns(9)
π aa_get_ns(9) β Kernel API Manual era π
okay so bestie, welcome to the aa_get_ns(9) page from the Kernel API Manual. It's short, it's iconic, and it's literally all about bumping a reference count. Let's get into it. β¨
πΈ NAME πΈ
aa_get_ns β increment references count on @ns
β¨ SYNOPSIS β¨
struct aa_ns * aa_get_ns (struct aa_ns *ns );
π ARGUMENTS π
nsβ namespace to increment reference count of (MAYBE NULL). yep, it can beNULL, no cap π«Ά
π¦ RETURN π¦
Pointer to ns. If ns is NULL, returns NULL.
Requires: ns must be held with valid refcount when called. like, actually valid β do not skip the vibe check on that refcount, okay? π
π SEE ALSO π
- Kernel file
./security/apparmor/include/policy_ns.h aa_put_ns(9)__aa_findn_ns(9)
mwah π β source/version: ./security/apparmor/include, date: October 2026, and the page is still aa_get_ns(9). π«Ά
π¦ 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