genlmsg_new(9)
β¨ genlmsg_new β the Kernel API Manual moment π
okay so bestie, welcome to genlmsg_new from the Kernel API Manual π this one is a kernel function, and honestly? it's giving "let me just allocate a brand new generic netlink message for you, bestie" energy β¨
πΈ NAME πΈ
genlmsg_new β allocate a new generic netlink message π¦
like, it's literally the function that spins up a fresh generic netlink message for you. no cap.
π SYNOPSIS π
struct sk_buff * genlmsg_new (size_t payload , gfp_t flags );
look at her. struct sk_buff * is what you get back β a pointer to a socket buffer π
and she takes two arguments: payload and flags. iconic signature, honestly.
π«Ά ARGUMENTS π«Ά
size_t payloadβ this is the size of the message payload π like, how much message you actually want in there. that's the number you're working with, bestie.gfp_t flagsβ the type of memory to allocate π yes, the memory allocation flags. that's the whole vibe of this one β it tells the allocator how you want that memory handled. ngl, very important.
π SEE ALSO π
okay this list is long and honestly kind of iconic β every single one of these is a real reference, so here we go, no skipping, periodt π
- Kernel file
./include/net/genetlink.h 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)genl_set_err(9)
like, that's the whole friend group right there. go read them, iykyk π₯
π reminder bestie: this is a kernel API page β the facts above are the whole page. no extra lore, no invented behaviour. we keep it real fr fr.
and that's the tea, bestie π§ this page lives in the Kernel API Manual, sourced from ./include/net, and the date on it is October 2026 β¨ genlmsg_new(9) forever and always ππ¦πΈ
π¦ 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