nlmsg_for_each_attr_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the nlmsg_for_each_attr_type(9) page in the Kernel API Manual ✨ This one is literally here to iterate over a stream of attributes. That's the whole vibe: loop through attributes, keep your counter cute, and let the required type do its thing πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

nlmsg_for_each_attr_type (pos , type , nlh , hdrlen , rem );

No cap, that's the exact call shape β€” all five little arguments lined up and ready 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • pos β€” the loop counter, bestie; it gets set to the current attribute. Slay.
  • type β€” the required attribute type for pos. It's the vibe check for which attribute you're on.
  • nlh β€” netlink message header. Yes, the header of the message. Iconic.
  • hdrlen β€” length of the family specific header. Keep it exact, okay?
  • rem β€” initialized to len, and it holds bytes currently remaining in stream. That's the little countdown tracker, periodt.

🌈 SEE ALSO 🌈

Kernel file ./include/net/netlink.h β€” and then the whole group chat of related refs, fr fr:


That's the whole page, bestie β€” catch you later! Source/version: ./include/net; date: October 2026; and the page is still nlmsg_for_each_attr_type(9) πŸ’œπŸ«Ά

πŸ“¦ where this page comes from