aboutsummaryrefslogtreecommitdiffstats
path: root/man/man3/netlink.3
diff options
context:
space:
mode:
Diffstat (limited to 'man/man3/netlink.3')
-rw-r--r--man/man3/netlink.330
1 files changed, 15 insertions, 15 deletions
diff --git a/man/man3/netlink.3 b/man/man3/netlink.3
index a9b6ab5baf..e8594ece25 100644
--- a/man/man3/netlink.3
+++ b/man/man3/netlink.3
@@ -16,13 +16,13 @@ Standard C library
.B #include <asm/types.h>
.B #include <linux/netlink.h>
.P
-.BI "int NLMSG_ALIGN(size_t " len );
-.BI "int NLMSG_LENGTH(size_t " len );
-.BI "int NLMSG_SPACE(size_t " len );
+.BI "int NLMSG_ALIGN(size_t " size );
+.BI "int NLMSG_LENGTH(size_t " size );
+.BI "int NLMSG_SPACE(size_t " size );
.BI "void *NLMSG_DATA(struct nlmsghdr *" nlh );
-.BI "struct nlmsghdr *NLMSG_NEXT(struct nlmsghdr *" nlh ", int " len );
-.BI "int NLMSG_OK(struct nlmsghdr *" nlh ", int " len );
-.BI "int NLMSG_PAYLOAD(struct nlmsghdr *" nlh ", int " len );
+.BI "struct nlmsghdr *NLMSG_NEXT(struct nlmsghdr *" nlh ", int " size );
+.BI "int NLMSG_OK(struct nlmsghdr *" nlh ", int " size );
+.BI "int NLMSG_PAYLOAD(struct nlmsghdr *" nlh ", int " size );
.fi
.SH DESCRIPTION
.I <linux/netlink.h>
@@ -34,19 +34,19 @@ The buffer passed to and from a netlink socket should
be accessed using only these macros.
.TP
.BR NLMSG_ALIGN ()
-Round the length of a netlink message up to align it properly.
+Round the size of a netlink message up to align it properly.
.TP
.BR NLMSG_LENGTH ()
-Given the payload length,
-.IR len ,
-this macro returns the aligned length to store in the
+Given the payload size,
+.IR size ,
+this macro returns the aligned size to store in the
.I nlmsg_len
field of the
.IR nlmsghdr .
.TP
.BR NLMSG_SPACE ()
Return the number of bytes that a netlink message with payload of
-.I len
+.I size
would occupy.
.TP
.BR NLMSG_DATA ()
@@ -64,17 +64,17 @@ didn't have the
.B NLMSG_DONE
set\[em]this function doesn't return NULL on end.
The
-.I len
-argument is an lvalue containing the remaining length
+.I size
+argument is an lvalue containing the remaining size
of the message buffer.
-This macro decrements it by the length of the message header.
+This macro decrements it by the size of the message header.
.TP
.BR NLMSG_OK ()
Return true if the netlink message is not truncated and
is in a form suitable for parsing.
.TP
.BR NLMSG_PAYLOAD ()
-Return the length of the payload associated with the
+Return the size of the payload associated with the
.IR nlmsghdr .
.SH VERSIONS
It is often better to use netlink via