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

1 /* SPDX-License-Identifier: GPL-2.0-only */
27 * ethnl_strz_size() - calculate attribute length for fixed size string
30 * Return: total length of an attribute with null terminated string from @s
38 * ethnl_put_strz() - put string attribute with fixed size string
40 * @attrtype: attribute type
43 * Puts an attribute with null terminated string from @s into the message.
55 return -EMSGSIZE; in ethnl_put_strz()
63 * ethnl_update_u32() - update u32 value from NLA_U32 attribute
65 * @attr: netlink attribute with new value or null
68 * Copy the u32 value from NLA_U32 netlink attribute @attr into variable
70 * is set to true if this function changed the value of *dst, otherwise it
89 * ethnl_update_u8() - update u8 value from NLA_U8 attribute
91 * @attr: netlink attribute with new value or null
94 * Copy the u8 value from NLA_U8 netlink attribute @attr into variable
96 * is set to true if this function changed the value of *dst, otherwise it
115 * ethnl_update_bool32() - update u32 used as bool from NLA_U8 attribute
117 * @attr: netlink attribute with new value or null
120 * Use the u8 value from NLA_U8 netlink attribute @attr to set u32 variable
122 * null. Bool pointed to by @mod is set to true if this function changed the
141 * ethnl_update_bool() - updateb bool used as bool from NLA_U8 attribute
143 * @attr: netlink attribute with new value or null
146 * Use the bool value from NLA_U8 netlink attribute @attr to set bool variable
148 * null. Bool pointed to by @mod is set to true if this function changed the
167 * ethnl_update_binary() - update binary data from NLA_BINARY attribute
170 * @attr: netlink attribute with new value or null
173 * Use the u8 value from NLA_U8 netlink attribute @attr to rewrite data block
174 * of length @len at @dst by attribute payload; do nothing if @attr is null.
175 * Bool pointed to by @mod is set to true if this function changed the logical
193 * ethnl_update_bitfield32() - update u32 value from NLA_BITFIELD32 attribute
195 * @attr: netlink attribute with new value or null
198 * Update bits in u32 value which are set in attribute's mask to values from
199 * attribute's value. Do nothing if @attr is null or the value wouldn't change;
200 * otherwise, set bool pointed to by @mod to true.
220 * ethnl_reply_header_size() - total size of reply header
249 * struct ethnl_req_info - base type of request information for GET requests
266 netdev_put(req_info->dev, &req_info->dev_tracker); in ethnl_parse_header_dev_put()
270 * struct ethnl_reply_data - base type of reply data for GET requests
287 * struct ethnl_request_ops - unified handling of GET and SET requests
290 * @hdr_attr: attribute type for request header
293 * @allow_nodev_do: allow non-dump request with no device identification
294 * @set_ntf_cmd: notification to generate on changes (SET)
317 * ->reply_size() estimated.
321 * structure which were allocated by ->prepare_data(). When processing
322 * dump requests, ->cleanup() is called for each message.
324 * Check if set operation is supported for a given device, and perform
326 * - 0 if the operation is a noop for the device (rare)
327 * - 1 if operation should proceed to calling @set
328 * - negative errno on errors
330 * @set:
331 * Execute the set operation. The implementation should return
332 * - 0 if no configuration has changed
333 * - 1 if configuration changed and notification should be generated
334 * - negative errno on errors
368 int (*set)(struct ethnl_req_info *req_info, member