genlmsg_nlhdr(9)
okay bestie, this is the Kernel API Manual page for genlmsg_nlhdr, and it's giving short-and-sweet utility energy π
β¨
πΈ NAME πΈ
genlmsg_nlhdr β Obtain netlink header from user specified header. that's literally the whole mission: user specified header in, netlink header out. slay.
β¨ SYNOPSIS β¨
copy this exactly, bestie β spaces and all:
struct nlmsghdr * genlmsg_nlhdr (void *user_hdr );
π ARGUMENTS π
user_hdrβ user header as returned fromgenlmsg_put. so it's the user header fromgenlmsg_put, no cap.
π RETURN π
Pointer to netlink header. that's the return, bestie β a pointer to netlink header. periodt π
π¦ SEE ALSO π¦
go read these next, iykyk:
- 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_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)
this lil page comes from the ./include/net source/version and is dated October 2026. byeee, go write some netlink code ππ«Ά
π¦ 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