netlbl_mgmt_listall_cb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” the netlbl_domhsh_walk_arg structure. 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 🌈

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