aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/socket_netlink_generic.txt
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-01-10 16:24:12 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-01-13 12:52:09 +0100
commit125dadd3c967f34615d7ac0e54a2e0a0aff7f92c (patch)
tree0340b61e440809e3be9099c1daef122d18e0d7ca /sys/linux/socket_netlink_generic.txt
parent5585946e227fc9dab364e87365312fef911b0c12 (diff)
sys/linux: use type templates for netlink
-350 lines of descriptions
Diffstat (limited to 'sys/linux/socket_netlink_generic.txt')
-rw-r--r--sys/linux/socket_netlink_generic.txt26
1 files changed, 1 insertions, 25 deletions
diff --git a/sys/linux/socket_netlink_generic.txt b/sys/linux/socket_netlink_generic.txt
index 22b52f245..5cd59f5ce 100644
--- a/sys/linux/socket_netlink_generic.txt
+++ b/sys/linux/socket_netlink_generic.txt
@@ -15,31 +15,7 @@ socket$nl_generic(domain const[AF_NETLINK], type const[SOCK_RAW], proto const[NE
sendmsg$nl_generic(fd sock_nl_generic, msg ptr[in, msghdr_nl_generic], f flags[send_flags])
-msghdr_nl_generic {
- addr ptr[in, sockaddr_nl_kern]
- addrlen len[addr, int32]
- vec ptr[in, iovec_nl_generic]
- vlen const[1, intptr]
- ctrl const[0, intptr]
- ctrllen const[0, intptr]
- f flags[send_flags, int32]
-}
-
-iovec_nl_generic {
- data ptr[in, netlink_msg_generic]
- len bytesize[data, intptr]
-}
-
-netlink_msg_generic {
- len len[parent, int32]
- type netlink_random_msg_type
- flags flags[netlink_msg_flags, int16]
- seq netlink_seq
- pid netlink_port_id
- hdr genlmsghdr
-# No body. Generic attribute can represent a random body.
- attrs array[nl_generic_attr]
-} [align_4]
+type msghdr_nl_generic msghdr_netlink[netlink_msg_t[netlink_random_msg_type, genlmsghdr, nl_generic_attr]]
genlmsghdr {
cmd int8[0:32]