nlmsg_next(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

nlmsg_next(9) πŸ’…βœ¨

okay so bestie, welcome to the glow-up of nlmsg_next(9) from the Kernel API Manual β€” this is the netlink message stream main character energy you didn't know you needed 🫢


✨ NAME ✨

nlmsg_next β€” literally the next netlink message in the message stream, no cap


🌸 SYNOPSIS 🌸

struct nlmsghdr * nlmsg_next (const struct nlmsghdr *nlh , int *remaining );

like, that's the whole vibe check right there πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • nlh β€” the netlink message header, aka the whole point of this function, bestie
  • remaining β€” the number of bytes remaining in the message stream, keep an eye on it πŸ‘€

πŸ‘‘ RETURN πŸ‘‘

it returns the next netlink message in the message stream β€” slay β€” and decrements remaining by the size of the current message. it's giving "one step forward, remaining goes down" and honestly? iconic ✨

fr fr, if you're looping through a stream of netlink messages, this is the function that walks you to the next one while keeping your byte budget in check πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

okay honey, buckle up, this list is LONG and it ate πŸ’€ but every single one is here so you can go read them all:


that's the whole page, babe β€” go forth and iterate through your netlink streams like the icon you are πŸŒˆπŸ’œ


signed, sealed, delivered by the ./include/net girlies β€” October 2026 πŸŽ€, with love from your fave manual page πŸ’–

πŸ“¦ where this page comes from