netlbl_catmap_walkrng(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… netlbl_catmap_walkrng(9) β€” like, the Kernel API Manual, bestie πŸŽ€

okay so you found yourself in the Kernel API Manual and the function in question is literally netlbl_catmap_walkrng(9) ✨ stay with me, it's easier than it sounds, fr fr.


🌸 NAME 🌸

netlbl_catmap_walkrng β€” bestie, this function finds the end of a string of set bits. that's it. that's the whole job. iconic behavior honestly πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

int netlbl_catmap_walkrng (struct netlbl_lsm_catmap *catmap , u32 offset
);

like yes, it returns an int, and yes, the line break is exactly where it is, don't come for me πŸ’€


πŸ’– ARGUMENTS πŸ’–

  • catmap β€” the category bitmap. this is the main character of the whole operation 🫢
  • offset β€” where you start searching, and it's measured in bits, not bytes. very important, don't get it twisted πŸ™ˆ

✨ DESCRIPTION ✨

so the vibe is: this function walks an LSM secattr category bitmap, starting at offset, and hands you back the spot of the first cleared bit 🎯

and if offset is past the end of the bitmap? it does not just shrug β€” it returns -ENOENT 😭 so yeah, that's your "bestie there's literally nothing out here" signal.

ngl this is a very short description but every word is doing cardio, ok? no filler, no fluff, just walk the bitmap and find that cleared bit πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./net/netlabel/netlabel_kapi.c β€” go read it, iykyk 🧚

and the whole extended friend group:


and that's the whole page bestie!! πŸ«ΆπŸ’œ

cute little sign-off: this page lives over in ./net/netlabel, it's dated October 2026, and yeah it's still called netlbl_catmap_walkrng(9) β€” slay, consistency, periodt 🌈⭐

πŸ“¦ where this page comes from