nlmsg_seq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so welcome to nlmsg_seq(9), section 9 of the Kernel API Manual β€” yes bestie, we're in kernel-doc territory today πŸ’–

nlmsg_seq β€” return the seq number of netlink message

that's literally it. that's the whole job. one (1) job. and she does it flawlessly ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

u32 nlmsg_seq (const struct nlmsghdr *nlh );

look at her. tiny signature. zero drama. the u32 up front telling you exactly what you're getting back, and then one little const struct nlmsghdr * pointer strolling in πŸ™ˆ


🌸 ARGUMENTS 🌸

  • nlh β€” the netlink message header. that's the one and only thing you hand her. netlink message header in, seq number out. very "you give me the envelope, i give you the number written on it" energy πŸ’Œ

✨ RETURN ✨

she returns 0 if the netlink message is NULL 🫢

fr fr that's the entire RETURN section, no cap β€” so if nlh is NULL, expect 0 back. that's the documented case, and we are not out here inventing extra ones πŸ‘‘ the rest is the seq number of the netlink message, exactly like NAME says. no sneaky surprises.

🌈 SEE ALSO 🌈

put your seatbelt on bestie, this list is long and i mean iconic-long πŸ’… every single one of these, in order, zero skips:

that's a whole friend group right there and they're all invited to the reading list πŸ§šπŸ’œ


and that's the page, bestie!! 🫢 it lives in ./include/net, it's dated October 2026, and it's page nlmsg_seq(9) from the Kernel API Manual β€” screenshot it, cite it, love it πŸ’–β­

πŸ“¦ where this page comes from