cipso_v4_map_cat_rbm_valid(9)
π cipso_v4_map_cat_rbm_valid β a Kernel API Manual moment β¨
okay so bestie, we're deep in the kernel today and the manual we're vibing with is the Kernel API Manual entry for cipso_v4_map_cat_rbm_valid(9). yes it's a mouthful, no you don't have to say it out loud π«Ά
β¨ NAME β¨
cipso_v4_map_cat_rbm_valid β literally just checks to see if the category bitmap is valid. that's it. that's the whole gig π
πΈ SYNOPSIS πΈ
int cipso_v4_map_cat_rbm_valid (const struct cipso_v4_doi *doi_def ,
const unsigned char *bitmap , u32 bitmap_len );
like, three little args, one int back. iconic behavior honestly π
π ARGUMENTS π
doi_defβ the DOI definition. your whole reference point, main character energy fr.bitmapβ the category bitmap. the thing we're checking, no cap.bitmap_lenβ how long that bitmap is, measured in bytes. don't forget the units bestie, bytes not bits π
π¦ DESCRIPTION π¦
okay so what this function actually does: it takes the given category bitmap and checks it against the given DOI definition. that's the vibe check π
then it reports back:
- a negative value if any of the categories in the bitmap don't have a valid mapping β like, even one lil invalid category and it's giving π©
- a zero value if all of the categories are valid β slay, we love a clean pass β¨
ngl the whole point is that "any" β one bad category in the bitmap and you get the negative. it's not a "mostly fine" situation, it's an all-or-nothing situation π
π SEE ALSO π
this is the part where the kernel introduces you to its entire friend group. so many icons in one file, and I mean the source file ./net/ipv4/cipso_ipv4.c, of course π
cipso_v4_cache_entry_free(9)cipso_v4_map_cache_hash(9)cipso_v4_cache_init(9)cipso_v4_cache_invalidate(9)cipso_v4_cache_check(9)cipso_v4_cache_add(9)cipso_v4_doi_search(9)cipso_v4_doi_add(9)cipso_v4_doi_free(9)cipso_v4_doi_free_rcu(9)cipso_v4_doi_remove(9)cipso_v4_doi_getdef(9)cipso_v4_doi_putdef(9)cipso_v4_doi_walk(9)cipso_v4_map_lvl_valid(9)cipso_v4_map_lvl_hton(9)cipso_v4_map_lvl_ntoh(9)cipso_v4_map_cat_rbm_hton(9)cipso_v4_map_cat_rbm_ntoh(9)cipso_v4_map_cat_enum_valid(9)cipso_v4_map_cat_enum_hton(9)cipso_v4_map_cat_enum_ntoh(9)cipso_v4_map_cat_rng_valid(9)cipso_v4_map_cat_rng_hton(9)cipso_v4_map_cat_rng_ntoh(9)cipso_v4_gentag_hdr(9)cipso_v4_gentag_rbm(9)cipso_v4_parsetag_rbm(9)cipso_v4_gentag_enum(9)cipso_v4_parsetag_enum(9)cipso_v4_gentag_rng(9)cipso_v4_parsetag_rng(9)cipso_v4_gentag_loc(9)cipso_v4_parsetag_loc(9)cipso_v4_optptr(9)cipso_v4_validate(9)cipso_v4_error(9)cipso_v4_genopt(9)cipso_v4_sock_setattr(9)cipso_v4_req_setattr(9)cipso_v4_delopt(9)cipso_v4_sock_delattr(9)cipso_v4_req_delattr(9)cipso_v4_getattr(9)cipso_v4_sock_getattr(9)cipso_v4_skbuff_setattr(9)cipso_v4_skbuff_delattr(9)cipso_v4_init(9)
okay that's the whole page bestie, you ate that π this one came from ./net/ipv4 and the date on it is October 2026 β so go forth, validate those bitmaps, and remember: cipso_v4_map_cat_rbm_valid(9), iykyk ππ§
π¦ 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