netlbl_catmap_walkrng(9)
π 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:
netlbl_cfg_map_del(9)netlbl_cfg_unlbl_map_add(9)netlbl_cfg_unlbl_static_add(9)netlbl_cfg_unlbl_static_del(9)netlbl_cfg_cipsov4_add(9)netlbl_cfg_cipsov4_del(9)netlbl_cfg_cipsov4_map_add(9)netlbl_cfg_calipso_add(9)netlbl_cfg_calipso_del(9)netlbl_cfg_calipso_map_add(9)_netlbl_catmap_getnode(9)netlbl_catmap_walk(9)netlbl_catmap_getlong(9)netlbl_catmap_setbit(9)netlbl_catmap_setrng(9)netlbl_catmap_setlong(9)netlbl_bitmap_walk(9)netlbl_bitmap_setbit(9)netlbl_enabled(9)netlbl_sock_setattr(9)netlbl_sock_delattr(9)netlbl_sock_getattr(9)netlbl_sk_lock_check(9)netlbl_conn_setattr(9)netlbl_req_setattr(9)netlbl_req_delattr(9)netlbl_skbuff_setattr(9)netlbl_skbuff_getattr(9)netlbl_skbuff_err(9)netlbl_cache_invalidate(9)netlbl_cache_add(9)netlbl_audit_start(9)netlbl_init(9)
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
- 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