netlbl_mgmt_listall_cb(9)
π netlbl_mgmt_listall_cb β a Kernel API Manual moment π
okay so bestie, imagine you're deep in the kernel and someone hits you with a LISTALL request. this little callback? she's the one who answers. this is netlbl_mgmt_listall_cb from the Kernel API Manual, and honestly she's lowkey iconic π
β¨ NAME β¨
netlbl_mgmt_listall_cb β the netlbl_domhsh_walk() callback used for LISTALL. periodt. that's the whole job description π«Ά
π¦ SYNOPSIS π¦
int netlbl_mgmt_listall_cb (struct netlbl_dom_map *entry , void *arg );
like, that's literally the signature. no cap, copy it exactly π€
πΈ ARGUMENTS πΈ
entryβ the domain mapping hash table entry π this is the thing the walk hands you.argβ thenetlbl_domhsh_walk_argstructure. yes bestie, that's the struct, spelled exactly like that π
π DESCRIPTION π
so here's the tea β this function is designed to be used as a callback to the netlbl_domhsh_walk function, and her whole purpose in life is generating a response for a LISTALL message. main character energy, honestly π
and what does she return? on success she returns the size of the message. on failure? negative values. so if you see a negative number coming back, that's your vibe check failing ππ
π SEE ALSO π
- Kernel file
./net/netlabel/netlabel_mgmt.cβ go read the source, iykyk π netlbl_mgmt_add_common(9)netlbl_mgmt_listentry(9)netlbl_mgmt_add(9)netlbl_mgmt_remove(9)netlbl_mgmt_listall(9)netlbl_mgmt_adddef(9)netlbl_mgmt_removedef(9)netlbl_mgmt_listdef(9)netlbl_mgmt_protocols_cb(9)netlbl_mgmt_protocols(9)netlbl_mgmt_version(9)netlbl_mgmt_genl_init(9)
like, the whole netlabel mgmt friend group fr fr π«Άβ¨
π reminder bestie: she's a callback. she is not meant to be called on her own. let netlbl_domhsh_walk do the walking. don't be out here calling callbacks directly, that's not the move π
and that's the page! it lives at ./net/netlabel, and the doc is dated October 2026, from the Kernel API Manual β mwah, slay, hope this helped bestie πππ¦βπβ¨
π¦ 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