HomeFreeBSD

netlink: add const variants of NLA iteration macros

Description

netlink: add const variants of NLA iteration macros

Add const-qualified versions of the NLA iteration helpers to allow
walking immutable netlink attribute buffers without discarding const
qualifiers.

This introduces NLA_NEXT_CONST(), _NLA_END_CONST(), and
NLA_FOREACH_CONST() in netlink_snl.h.

Signed-off-by: Ishan Agrawal <iagrawal9990@gmail.com>
Sponsored-by : Google LLC (GSoC 2026)

Details

Provenance
iagrawal9990_gmail.comAuthored on Jun 28 2026, 4:14 AM
kpCommitted on Jul 3 2026, 8:20 AM
Parents
rGc041b82c59e8: ffs: do not return ESTALE on attempt to ffs_unotovp() on unlinked inode
Branches
Unknown
Tags
Unknown