genlmsg_iput(9)
π genlmsg_iput β the Kernel API Manual, bestie edition π
Okay so this one lives in the kernel API manual (section 9, the fun one), and it's called genlmsg_iput. It's literally the "start a genetlink message based on a genl_info" girlie, and honestly? She's a convenience icon. πΈ
β¨ NAME β¨
genlmsg_iput β start genetlink message based on genl_info π
π¦ SYNOPSIS π¦
void * genlmsg_iput (struct sk_buff *skb , const struct genl_info *info );
π ARGUMENTS π
skbβ theskbin which the message header will be placed. Like, that's where the header's going, no debate. π«Άinfoβ thegenl_infoas provided to do/dump handlers. It's giving "handed to you by the core, bestie, use it." β¨
π DESCRIPTION π
So this is a convenience wrapper β a little shortcut function β which starts a genetlink message based on information in the user request. Very demure, very mindful. π
And here's the important part: info should be either the struct passed by the genetlink core to do/dump handlers (that's when you're constructing replies to such requests) or a struct initialized by genl_info_init_ntf when constructing notifications. Two valid moods, one function. Slay. π
π RETURN π
It returns a pointer to the new genetlink header. That's it, that's the whole vibe check. π―
π₯ SEE ALSO π₯
Kernel file ./include/net/genetlink.h plus this whole friend group:
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_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)genl_set_err(9)
Like, go read all of them. Iykyk. π
Heads up bestie: this page is from ./include/net, and the date on it is October 2026. So when you're citing her, that's the era. β
And that's the whole page, periodt. π§ Big kiss to ./include/net for hosting her, and to that October 2026 timestamp for keeping it real β go forth and start those genetlink messages, bestie. π
ππ
π¦ 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