Lines Matching +full:sub +full:- +full:messages

1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
17 #define NETLINK_ISCSI 8 /* Open-iSCSI */
23 #define NETLINK_DNRTMSG 14 /* DECnet routing messages (obsolete) */
24 #define NETLINK_KOBJECT_UEVENT 15 /* Kernel messages to userspace */
45 * struct nlmsghdr - fixed format metadata header of Netlink messages
99 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) )
104 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
106 NLMSG_ALIGN((nlh)->nlmsg_len)))
108 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
109 (nlh)->nlmsg_len <= (len))
110 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
117 #define NLMSG_MIN_TYPE 0x10 /* < 0x10: reserved control messages */
134 * enum nlmsgerr_attrs - nlmsgerr attributes
140 * be used - in the success case - to identify a created
160 NLMSGERR_ATTR_MAX = __NLMSGERR_ATTR_MAX - 1
221 * <------- NLA_HDRLEN ------> <-- NLA_ALIGN(payload)-->
222 * +---------------------+- - -+- - - - - - - - - -+- - -+
225 * +---------------------+- - -+- - - - - - - - - -+- - -+
226 * <-------------- nlattr->nla_len -------------->
236 * +---+---+-------------------------------+
238 * +---+---+-------------------------------+
249 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1))
271 * policy descriptions - it's specific to each family how this is used
277 * enum netlink_attribute_type - type of an attribute
280 * @NL_ATTR_TYPE_U8: 8-bit unsigned attribute
281 * @NL_ATTR_TYPE_U16: 16-bit unsigned attribute
282 * @NL_ATTR_TYPE_U32: 32-bit unsigned attribute
283 * @NL_ATTR_TYPE_U64: 64-bit unsigned attribute
284 * @NL_ATTR_TYPE_S8: 8-bit signed attribute
285 * @NL_ATTR_TYPE_S16: 16-bit signed attribute
286 * @NL_ATTR_TYPE_S32: 32-bit signed attribute
287 * @NL_ATTR_TYPE_S64: 64-bit signed attribute
290 * @NL_ATTR_TYPE_NUL_STRING: NUL-terminated string,
293 * consists of sub-attributes. The nested policy and maxtype
296 * attribute contains sub-attributes whose type is irrelevant
301 * @NL_ATTR_TYPE_SINT: 32-bit or 64-bit signed attribute, aligned to 4B
302 * @NL_ATTR_TYPE_UINT: 32-bit or 64-bit unsigned attribute, aligned to 4B
333 * enum netlink_policy_type_attr - policy type attributes
349 * @NL_POLICY_TYPE_ATTR_POLICY_IDX: sub policy for nested and
351 * @NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE: maximum sub policy
358 * @NL_POLICY_TYPE_ATTR_PAD: pad attribute for 64-bit alignment
380 NL_POLICY_TYPE_ATTR_MAX = __NL_POLICY_TYPE_ATTR_MAX - 1