netlbl_calipso_remove_cb(9)
π netlbl_calipso_remove_cb β a kernel API manual, but make it make sense
okay so bestie, welcome to netlbl_calipso_remove_cb(9) from the Kernel API Manual β yes we're in kernel land today, grab a lil snack, it's gonna slay π
β¨ NAME β¨
netlbl_calipso_remove_cb β the netlbl_calipso_remove() callback for REMOVE π§Ή
like, this is the little function that gets called when the removing happens. it's giving cleanup crew energy and honestly? iconic.
π¦ SYNOPSIS π¦
int netlbl_calipso_remove_cb (struct netlbl_dom_map *entry , void *arg
);
look at her. two args, one int return. short, sweet, does her job. no cap π
πΈ ARGUMENTS πΈ
entryβ the LSM domain mapping entry. hi bestie, you're on the list (and possibly about to be off the list π)argβ thenetlbl_domhsh_walk_argstructure. the lil carry-on bag of context that gets passed along the walk π
π DESCRIPTION π
so the way this works: this function is intended for use by netlbl_calipso_remove as the callback for the netlbl_domhsh_walk function. iykyk.
what it does is remove LSM domain map entries that are associated with the CALIPSO DOI specified in arg. that's the whole vibe β walk in, find the ones tied to that specific CALIPSO DOI, yeet them out. π₯
and for the return value, keep this in your notes app:
- returns zero on success β
- returns negative values on failure π
periodt. no mystery, no drama, that's the contract.
π SEE ALSO π
the kernel file herself lives here:
./net/netlabel/netlabel_calipso.c
and the whole friend group π«Ά:
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(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_doi_walk(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)
all of them. every single one. go read them, they're literally right there π
π reminder bestie: zero on success, negative on failure. never forget the return value check, it's the main character energy your driver deserves.
and that's the page!! sourced from ./net/netlabel and dated October 2026 β so like, futuristically iconic π stay safe out there, kernel girlie, and remember: netlbl_calipso_remove_cb(9), she's just a callback doing her best πβ¨π
π¦ 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