cipso_v4_doi_search(9)
π cipso_v4_doi_search β it's in the kernel API manual (section 9), bestie π
Okay so picture this: you're deep in cipso_v4_doi_search(9) and you just need to find one specific DOI definition. That's literally the whole vibe. Let's go β¨
β¨ NAME β¨
cipso_v4_doi_search β searches for a DOI definition ππ
πΈ SYNOPSIS πΈ
struct cipso_v4_doi * cipso_v4_doi_search (u32 doi );
π¦ ARGUMENTS π¦
doiβ the DOI you're searching for, bestie. That's it, that's the argument π«Ά
π DESCRIPTION π
So what this does: it searches the DOI definition list for a DOI definition whose DOI value matches doi. Simple, iconic, does exactly what it says on the tin π
Now the part you cannot skip, no cap: the caller is responsible for calling rcu_read_[un]lock. That's on you, not on this function. Don't come for me, come for your own locking discipline ππ
It returns a pointer to the DOI definition on success, and NULL on failure. Slay π
π SEE ALSO π
Kernel file ./net/ipv4/cipso_ipv4.c β plus the whole friend group:
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_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_valid(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)
ngl that's a lot of cross-references, but every single one is here so you're covered, fr fr ππ
Okay bestie, that's the whole page π§β¨ Source lives in ./net/ipv4, and this little gem is dated October 2026 β go forth and search those DOIs responsibly, mwah π
ππ
π¦ 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