nlmsg_for_each_msg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nlmsg_for_each_msg πŸ’…

okay so bestie, welcome to nlmsg_for_each_msg(9) from the Kernel API Manual ✨ this page is literally about one thing: iterating over a stream of messages. that’s the whole vibe. no cap.


🌸 NAME 🌸

nlmsg_for_each_msg β€” iterate over a stream of messages


✨ SYNOPSIS ✨

nlmsg_for_each_msg (pos , head , len , rem );

πŸŽ€ ARGUMENTS πŸŽ€

  • pos β€” the loop counter, and it gets set to the current message. main character of the loop, honestly.
  • head β€” the head of the message stream. like the beginning of the group chat.
  • len β€” the length of the message stream. yes, the whole thing.
  • rem β€” initialized to len, and it holds the bytes currently remaining in the stream. so it’s keeping track of what’s left 😭

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/net/netlink.h, plus this entire netlink cinematic universe of references β€” every single one, fr fr:


signing off from ./include/net, dated October 2026, on nlmsg_for_each_msg(9) πŸ’–βœ¨

πŸ“¦ where this page comes from