genlmsg_iput(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” the skb in which the message header will be placed. Like, that's where the header's going, no debate. 🫢
  • info β€” the genl_info as 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:

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