genlmsg_parse_deprecated(9)
π genlmsg_parse_deprecated(9) β from the Kernel API Manual, bestie
okay so picture this: it's a genlmsg_parse_deprecated(9) kind of day β that's the kernel manual page we're doing, and yes the "deprecated" in the name is right there being all ominous, we'll get to it. sit down, grab a strawberry π, and let's parse some attributes together.
β¨ NAME β¨
genlmsg_parse_deprecated β the one that parses the attributes of a genetlink message π (yes, that genetlink message, the one your family is gossiping about)
πΈ SYNOPSIS πΈ
int genlmsg_parse_deprecated (const struct nlmsghdr *nlh , const struct
genl_family *family , struct nlattr *tb[] , int maxtype , const struct
nla_policy *policy , struct netlink_ext_ack *extack );
like, that's the whole signature, no notes π
π¦ ARGUMENTS π¦
okay bestie, six things going in, keep up:
nlhβ the netlink message header. the main character of this whole operation, ngl πfamilyβ the genetlink message family. it's giving "who even are you" energy, in the good way π«Άtbβ destination array withmaxtype+1elements. yes, plus one, do not forget the plus one, this is fr fr the classic off-by-one trap πmaxtypeβ maximum attribute type to be expected. the vibes ceiling βpolicyβ validation policy. she checks your outfit before you leave the house and honestly? iconic πextackβ extended ACK report struct. the receipts π₯
π SEE ALSO π
the whole friend group, in the order the kernel introduced them, no gatekeeping:
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(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)
heads up π«Ά β the _deprecated in this function's name is in the original name, so i'm keeping it exactly as-is. it's literally part of the function name, no cap.
mwah π that's the page!! this one lives in ./include/net and the manual beeped into existence in October 2026 β so go forth, parse those attributes, and remember: maxtype+1 elements, bestie, 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