vec_cmp(9)
π vec_cmp(9) β the Kernel API Manual page you didn't know you needed
okay so bestie, welcome to vec_cmp(9), straight out of the Kernel API Manual. this one is lowkey tiny but it's doing real work: it's the label comparison for set ordering. iykyk π
β¨ NAME β¨
vec_cmp β literally just label comparison for set ordering, no cap π«Ά
πΈ SYNOPSIS πΈ
int vec_cmp (struct aa_profile * const *a , int an , struct aa_profile *
const *b , int bn );
yes the line break is right there in the signature, she's just like that π
π¦ ARGUMENTS π¦
aβ theaa_profileyou're comparing (and ngl bestie, this one is NOT NULL, so do not play with me π)anβ the length ofaβ¨bβ the otheraa_profileyou're comparing (also NOT NULL β i said what i said π)bnβ the length ofbπ
π RETURN π
okay so the vibe check results, in order:
<0β ifa < bπ==0β ifa == bπ>0β ifa > bπ₯
periodt. that's the whole return contract, she's not complicated.
π SEE ALSO π
this is the part where she lists everyone she knows, and bestie she knows a LOT of people β all of these live in the kernel file ./security/apparmor/label.c, so go say hi π
ns_cmp(9), profile_cmp(9), aa_vec_unique(9), aa_label_alloc(9), label_cmp(9), __aa_label_next_not_in_set(9), aa_label_is_subset(9), aa_label_is_unconfined_subset(9), __label_remove(9), __label_replace(9), __label_insert(9), __vec_find(9), __label_find(9), aa_label_remove(9), aa_label_replace(9), vec_find(9), aa_label_insert(9), aa_label_next_in_merge(9), label_merge_cmp(9), label_merge_insert(9), labelset_of_merge(9), __label_find_merge(9), aa_label_find_merge(9), aa_label_merge(9), label_compound_match(9), label_components_match(9), aa_label_match(9), aa_update_label_name(9), aa_profile_snxprint(9), aa_label_snxprint(9), aa_label_asxprint(9), aa_label_acntsxprint(9), aa_label_strn_parse(9), aa_labelset_destroy(9), __label_update(9), __labelset_update(9), __aa_labelset_update_subtree(9)
like, the whole friend group fr fr πΈ
and that's the page, bestie!! this icon dropped from ./security/apparmor back in October 2026, so jot that down in your notes app and go compare some labels πβ¨π¦
π¦ 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