aa_get_profile_loaddata(9)
β¨ aa_get_profile_loaddata(9) β¨
okay so this is a page from the Kernel API Manual, bestie β it's aa_get_profile_loaddata(9), and it's lowkey one of those tiny helper functions that just grabs you a reference count. short page, but we're gonna give it the main character energy it deserves π
πΈ NAME πΈ
aa_get_profile_loaddata β get a profile reference count on loaddata π«Ά
like, it bumps the refcount so your loaddata doesn't ghost you mid-use. iconic behavior, honestly.
π¦ SYNOPSIS π¦
struct aa_loaddata * aa_get_profile_loaddata (struct aa_loaddata *data
);
yep that's the whole signature. data goes in, struct aa_loaddata * comes out. no cap π
π ARGUMENTS π
dataβ reference to get a count on β¨ that's it, that's the whole argument. she's simple, she's cute, she has one job.
π RETURN π
returns a pointer to reference π₯
β οΈ requires: data to have a valid reference count on it. like, fr fr β don't be passing in something that doesn't already have a valid count, because that's giving chaos and we don't do that here π
π§ SEE ALSO π§
- Kernel file
./security/apparmor/include/policy_unpack.hβ that's where the vibes live, go look π aa_get_i_loaddata(9)β the sibling function, also slayaa_get_profile_loaddata_not0(9)β the other sibling, the one with_not0in the name. iykyk π
and that's the whole page bestie!! β¨ this came out of ./security/apparmor/include and it's dated October 2026 π β so yeah, mark your calendar, go bump that refcount responsibly, and remember: every valid reference count is a little act of self-care πππ¦
π¦ 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