genl_set_err(9)
π 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β thePORTIDof 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 thegroupsarray. π£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:
struct genl_multicast_group(9)struct genl_family(9)struct genl_info(9)struct genl_small_ops(9)struct genl_ops(9)struct genl_split_ops(9)struct genl_dumpit_info(9)genl_info_init_ntf(9)genlmsg_iput(9)genlmsg_nlhdr(9)genlmsg_parse_deprecated(9)genlmsg_parse(9)genl_dump_check_consistent(9)genlmsg_put_reply(9)genlmsg_end(9)genlmsg_cancel(9)genlmsg_multicast_netns_filtered(9)genlmsg_multicast_netns(9)genlmsg_multicast(9)genlmsg_multicast_allns(9)genlmsg_unicast(9)genlmsg_reply(9)genlmsg_data(9)genlmsg_len(9)genlmsg_msg_size(9)genlmsg_total_size(9)genlmsg_new(9)
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
- 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