Lines Matching +full:attribute +full:- +full:set

1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
17 #define NETLINK_ISCSI 8 /* Open-iSCSI */
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)))
123 * followed by the message contents unless NETLINK_CAP_ACK was set
129 * if NETLINK_EXT_ACK was set
134 * enum nlmsgerr_attrs - nlmsgerr attributes
137 * @NLMSGERR_ATTR_OFFS: offset of the invalid attribute in the original
140 * be used - in the success case - to identify a created
142 * @NLMSGERR_ATTR_POLICY: policy for a rejected attribute
143 * @NLMSGERR_ATTR_MISS_TYPE: type of a missing required attribute,
144 * %NLMSGERR_ATTR_MISS_NEST will not be present if the attribute was
146 * @NLMSGERR_ATTR_MISS_NEST: offset of the nest where attribute was missing
148 * @NLMSGERR_ATTR_MAX: highest attribute number
160 NLMSGERR_ATTR_MAX = __NLMSGERR_ATTR_MAX - 1
221 * <------- NLA_HDRLEN ------> <-- NLA_ALIGN(payload)-->
222 * +---------------------+- - -+- - - - - - - - - -+- - -+
225 * +---------------------+- - -+- - - - - - - - - -+- - -+
226 * <-------------- nlattr->nla_len -------------->
236 * +---+---+-------------------------------+
237 * | N | O | Attribute Type |
238 * +---+---+-------------------------------+
249 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1))
252 /* Generic 32 bitflags attribute content sent to the kernel.
254 * The value is a bitmap that defines the values being set
259 * implies we are selecting bit 1 and we want to set its value to 0.
262 * implies we are selecting bit 2 and we want to set its value to 1.
271 * policy descriptions - it's specific to each family how this is used
272 * Normally, it should be retrieved via a dump inside another attribute
277 * enum netlink_attribute_type - type of an attribute
279 * @NL_ATTR_TYPE_FLAG: flag attribute (present/not present)
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,
292 * @NL_ATTR_TYPE_NESTED: nested, i.e. the content of this attribute
293 * consists of sub-attributes. The nested policy and maxtype
296 * attribute contains sub-attributes whose type is irrelevant
300 * @NL_ATTR_TYPE_BITFIELD32: &struct nla_bitfield32 attribute
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
335 * @NL_POLICY_TYPE_ATTR_TYPE: type of the attribute,
352 * attribute for nested and nested array types, this can
358 * @NL_POLICY_TYPE_ATTR_PAD: pad attribute for 64-bit alignment
361 * @NL_POLICY_TYPE_ATTR_MAX: highest attribute number
380 NL_POLICY_TYPE_ATTR_MAX = __NL_POLICY_TYPE_ATTR_MAX - 1