netlink_set_err(9)
β¨ netlink_set_err(9) β¨
okay so bestie, welcome to another β¨iconicβ¨ page from the Kernel API Manual β this one is netlink_set_err, and it's literally the "hey everyone, something went wrong" broadcaster of the netlink world π
πΈ NAME πΈ
netlink_set_err β report error to broadcast listeners π (yes, that's the whole vibe: tell the broadcast fam that something broke)
π SYNOPSIS π
int netlink_set_err (struct sock *ssk , u32 portid , u32 group , int
code );
that's the whole signature, no cap β¨ four args and a return type, and we're gonna go through every single one π«Ά
π¦ ARGUMENTS π¦
sskβ the kernel netlink socket, as returned bynetlink_kernel_create. like, this is your main character socket, the one doing the broadcasting πportidβ the PORTID of a process that we want to skip (if any). so if someone shouldn't get the notif, you put their PORTID here π (it's optional, hence the "if any")groupβ the broadcast group that will notice the error. like, this is the group chat that's about to get the bad news πcodeβ error code, must be negative (as usual in kernelspace). yes bestie, negative β kernelspace does it that way, that's just the rules π§
π DESCRIPTION π
so here's what it does: this function returns the number of broadcast listeners that have set the NETLINK_NO_ENOBUFS socket option β
that's it. that's the whole thing. it's giving "simple but specific" energy π₯
π SEE ALSO π
- Kernel file
./net/netlink/af_netlink.c __netlink_ns_capable(9)netlink_ns_capable(9)netlink_capable(9)netlink_net_capable(9)netlink_change_ngroups(9)nlmsg_notify(9)
π go read those too, iykyk β they're all part of the netlink family and they're all lowkey important π«Ά
okay that's the page!! π sign-off time: this cutie lives in ./net/netlink, the version/date on it is October 2026, and the manual is netlink_set_err(9). mwah, go forth and broadcast responsibly π
π
π¦ 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