genl_set_err(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– genl_set_err(9) πŸ’–

okay bestie, welcome to the genl_set_err(9) page from the Kernel API Manual β€” yes, we are doing genetlink error-reporting lore and we are doing it cute. πŸ’…βœ¨

✨ NAME ✨

genl_set_err β€” report error to genetlink broadcast listeners 🫢

πŸŽ€ SYNOPSIS πŸŽ€

int genl_set_err (const struct genl_family *family , struct net *net ,
       u32 portid , u32 group , int code );

πŸ’… ARGUMENTS πŸ’…

  • family β€” the generic netlink family, aka the main character here. πŸ‘‘
  • net β€” the network namespace to report the error to. 🌐
  • portid β€” the PORTID of a process that we want to skip (if any). πŸ™ˆ
  • group β€” the broadcast group that will notice the error; this is the offset of the multicast group in the groups array. πŸ“£
  • code β€” error code, and it must be negative (as usual in kernelspace). no cap, negative only. πŸ’€

πŸ¦‹ DESCRIPTION πŸ¦‹

This function returns the number of broadcast listeners that have set the NETLINK_RECV_NO_ENOBUFS socket option. literally that's the whole vibe check here. ✨

bestie, keep code negative β€” that's not a suggestion, that's the rule. 🚨

🌈 SEE ALSO 🌈

Kernel file ./include/net/genetlink.h is the hangout spot, and these are all the friends linked from this page:


xoxo, this page came from ./include/net, dated October 2026, and it's serving genl_set_err(9) energy all the way to the end. πŸŽ€πŸ’–

πŸ“¦ where this page comes from