__aa_get_label(9)
β¨ NAME β¨
Okay bestie, welcome to __aa_get_label(9) from the Kernel API Manual π This one is all about getting a reference count to an uncounted label reference. That's the whole vibe β short, sweet, and lowkey important π
πΈ SYNOPSIS πΈ
struct aa_label * __aa_get_label (struct aa_label *l );
π¦ ARGUMENTS π¦
lβ reference to get a count on. Slay, that's it π
π RETURN π
It gives you back a pointer to reference OR NULL if the race is lost and the reference is being repeated. No cap, both outcomes are on the table π
Requires: lock held, and the return code MUST be checked. Like, fr fr, do not skip the check bestie π¨
π SEE ALSO π
Kernel file ./security/apparmor/include/label.h and the iconic crew: aa_get_label_rcu(9), aa_get_newest_label(9), aa_get_newest_label_condref(9) π«Ά
Source/version: ./security/apparmor/include Β· date: October 2026 Β· page: __aa_get_label(9) β bye bestie, go check that return code and slay your kernel journey π
β¨π
π¦ 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