netlbl_mgmt_listdef(9)
β¨ netlbl_mgmt_listdef(9) β¨
okay so this is a page from the Kernel API Manual, and today's main character is netlbl_mgmt_listdef π
she's a little function with one job and she does it slayfully. bestie, let's get into it π
πΈ NAME πΈ
netlbl_mgmt_listdef β the girl who handles a LISTDEF message π¦
β SYNOPSIS β
int netlbl_mgmt_listdef (struct sk_buff *skb , struct genl_info *info );
π ARGUMENTS π
skbβ the NETLINK buffer, periodt π₯ this is the actual packet payload situation she's working with.infoβ the Generic NETLINK info block π«Ά the lil metadata bestie that rides along with the message.
π DESCRIPTION π
So here's the vibe: netlbl_mgmt_listdef processes a user generated LISTDEF message, and then dumps the default domain mapping in a form suitable for use in a kernel generated LISTDEF message β¨ like, she takes the user's ask and repackages the default domain mapping so the kernel can spit out its own LISTDEF with it. lowkey iconic.
Return value tea β: she returns zero on success, and negative values on failure π so if you see a negative number, something went off and that's your vibe check failing.
π¦ SEE ALSO π¦
Kernel file ./net/netlabel/netlabel_mgmt.c, plus the whole friend group:
netlbl_mgmt_add_common(9)netlbl_mgmt_listentry(9)netlbl_mgmt_add(9)netlbl_mgmt_remove(9)netlbl_mgmt_listall_cb(9)netlbl_mgmt_listall(9)netlbl_mgmt_adddef(9)netlbl_mgmt_removedef(9)netlbl_mgmt_protocols_cb(9)netlbl_mgmt_protocols(9)netlbl_mgmt_version(9)netlbl_mgmt_genl_init(9)
ngl if you ever need to find this page again, it lives under ./net/netlabel β iykyk π
and that's the whole page bestie, no cap π§ ty for coming to my ted talk π this one's from ./net/netlabel, dated October 2026, and yes the footer still says netlbl_mgmt_listdef(9) because she's consistent like that π
β¨π
π¦ 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