calipso_doi_walk(9)
π calipso_doi_walk β like, the kernel API manual, section 9, bestie
okay so real talk, we're in the kernel API manual today (that's the 9 in calipso_doi_walk(9), iykyk) and this little function is honestly so underrated. it just... walks the list. respectfully. let's get into it π«Ά
β¨ NAME β¨
calipso_doi_walk β literally just iterate through the DOI definitions, no drama, no cap πΈ
π SYNOPSIS π
int calipso_doi_walk (u32 *skip_cnt , int (*callback)(struct calipso_doi
*doi_def, void *arg) , void *cb_arg );
yes that's the whole thing. three args. she's petite. she's iconic. π
π¦ ARGUMENTS π¦
skip_cntβ skip past this number of DOI definitions... and then she gets updated, okay? it's not just a read, it comes back changed. main character behaviour fr π«callbackβ the callback, called for each DOI definition. your moment to shine, bestie β¨cb_argβ the argument you hand off to the callback function. it's giving "plus one" ποΈ
π₯ DESCRIPTION π₯
so what she does is: iterate over the DOI definition list, skipping the first skip_cnt entries. simple. elegant. we love her π
for each entry, she calls callback. and listen β if callback returns a negative value, she stops and returns. like, she's done, she's not doing the rest, that's the whole vibe check π
returns zero on success, negative values on failure. that's it. that's the tea β
π SEE ALSO π
the kernel file π :
Kernel file ./net/netlabel/netlabel_calipso.c
and the whole friend group (they all show up together, it's adorable):
netlbl_calipso_ops_register(9)netlbl_calipso_add_pass(9)netlbl_calipso_add(9)netlbl_calipso_list(9)netlbl_calipso_listall_cb(9)netlbl_calipso_listall(9)netlbl_calipso_remove_cb(9)netlbl_calipso_remove(9)netlbl_calipso_genl_init(9)calipso_doi_add(9)calipso_doi_free(9)calipso_doi_remove(9)calipso_doi_getdef(9)calipso_doi_putdef(9)calipso_sock_getattr(9)calipso_sock_setattr(9)calipso_sock_delattr(9)calipso_req_setattr(9)calipso_req_delattr(9)calipso_optptr(9)calipso_getattr(9)calipso_skbuff_setattr(9)calipso_skbuff_delattr(9)calipso_cache_invalidate(9)calipso_cache_add(9)
like, go read all of them. or don't. but they're there π§
ok that's the whole page, no notes. you understood it, you ate that, periodt π
mwah π β this masterpiece lives in ./net/netlabel, dated October 2026, and she answers to the name calipso_doi_walk(9) π
π¦ 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