genlmsg_msg_size(9)
π NAME π
genlmsg_msg_size β length of genetlink message not including padding.
Okay so this is the genlmsg_msg_size(9) page from the Kernel API Manual, and it's giving βtiny but important helperβ energy. π
It's about the length of a genetlink message, and the key detail is not including padding β padding does not count, no cap. β¨
β¨ SYNOPSIS β¨
int genlmsg_msg_size (int payload );
Bestie, that's the whole signature β one int payload argument, and yes, keep the spacing exactly like that. Copy it character for character. π«Ά
πΈ ARGUMENTS πΈ
payloadβ length of message payload
That's the only argument, and it's literally just the message payload length. Iconic, low-effort, useful. π
π SEE ALSO π
Here's the full squad from the original page β don't skip a single one, iykyk. First the kernel file, then every related page:
- 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_total_size(9)genlmsg_new(9)genl_set_err(9)
Mwah π β source/version: ./include/net; date: October 2026. That's the whole page, bestie. Go forth and slay your genetlink math. ππ
π¦ 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