netlbl_bitmap_setbit(9)
π netlbl_bitmap_setbit β the lil' bit-flipper, explained
okay so bestie, welcome to the netlbl_bitmap_setbit(9) page from the Kernel API Manual β¨ this one is short and sweet and honestly kind of iconic for it.
πΈ NAME πΈ
netlbl_bitmap_setbit β sets a single bit in a bitmap. one bit. that's the whole job. and she does it flawlessly. π
π SYNOPSIS π
void netlbl_bitmap_setbit (unsigned char *bitmap , u32 bit , u8 state );
literally just three little args and she's off. no cap. β¨
π¦ ARGUMENTS π¦
bitmapβ the bitmap. yes bestie, that bitmap. the one you're poking. π«Άbitβ the bit. the specific one. your main character bit. πstateβ if it's non-zero, set the bit (1); otherwise clear the bit (0). so: truthy = turn it on, falsy = turn it off. vibe check passed. β
π DESCRIPTION π
Set a single bit in the bitmask. that's it, that's the function. she's got one job and she ate. π₯
Returns zero on success, negative values on error. (and yeah, the synopsis up there says void β not me noticing, but the page says what the page says, so I'm telling you exactly what the page says ππ)
π SEE ALSO π
the kernel file lives at ./net/netlabel/netlabel_kapi.c β go say hi π§
and here's the whole group chat of friends, fr fr:
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_setrng(9)netlbl_catmap_setlong(9)netlbl_bitmap_walk(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)
bestie reminder: the page documents it as returning zero on success and negative values on error, even though the synopsis says void. i'm not the one who wrote it, i'm just the one who told you π
okay that's the whole page, you're officially educated π this lil' render came from ./net/netlabel, dated October 2026, and yeah β it's a netlbl_bitmap_setbit(9) situation, and you understood it. slay. ππ
π¦ 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