netlbl_catmap_setrng(9)
π netlbl_catmap_setrng(9) β aka the Kernel API Manual's cutest little bit-setter
okay so bestie, we're in the netlbl_catmap_setrng(9) man page, straight out of the Kernel API Manual β¨ grab a matcha, this one's short and sweet.
πΈ NAME πΈ
netlbl_catmap_setrng β literally sets a range of bits in a LSM secattr catmap. that's it. that's the whole vibe. π
π¦ SYNOPSIS π¦
int netlbl_catmap_setrng (struct netlbl_lsm_catmap **catmap , u32 start
, u32 end , gfp_t flags );
yes the line break in the middle of the parameter list is real, don't come for me, that's just how the page looks π
π ARGUMENTS π
catmapβ a pointer to the category bitmap πΊοΈ like, the actual map you're decorating with bits.startβ the starting bit β where the range begins.endβ the last bit in the string π the range goes up to and includes this one, no cap.flagsβ memory allocation flags π the usualgfp_tsituation, passed along for any memory the call needs.
π DESCRIPTION π
So the whole job here? Set a range of bits, starting at start and ending with end. inclusive range behaviour, main character energy, start through end both invited to the party π.
Returns zero on success β iconique, we love a clean 0 β¨ β and negative values on failure π so always check your return value, bestie, fr fr.
π SEE ALSO π
these are the siblings! the whole netlabel extended fam π«Ά β and the kernel file they live in: ./net/netlabel/netlabel_kapi.c
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_walkrng(9)netlbl_catmap_getlong(9)netlbl_catmap_setbit(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)
mwah π that's the page. sourced from ./net/netlabel, dated October 2026, and it's netlbl_catmap_setrng(9) forever and ever π go set some bits bestie, you got this π
π¦ 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