Lines Matching full:payload

17  *    <--- nlmsg_total_size(payload)  --->
18 * <-- nlmsg_msg_size(payload) ->
20 * | nlmsghdr | Pad | Payload | Pad | nlmsghdr
25 * Payload Format:
53 * nlmsg_msg_size(payload) length of message w/o padding
54 * nlmsg_total_size(payload) length of message w/ padding
55 * nlmsg_padlen(payload) length of padding at tail
57 * Message Payload Access:
58 * nlmsg_data(nlh) head of message payload
59 * nlmsg_len(nlh) length of message payload
82 * <------- nla_total_size(payload) ------->
83 * <---- nla_attr_size(payload) ----->
85 * | Header | Pad | Payload | Pad | Header
126 * nla_attr_size(payload) length of attribute w/o padding
127 * nla_total_size(payload) length of attribute w/ padding
128 * nla_padlen(payload) length of padding
130 * Attribute Payload Access:
131 * nla_data(nla) head of attribute payload
132 * nla_len(nla) length of attribute payload
134 * Attribute Payload Access for Basic Types:
135 * nla_get_uint(nla) get payload for a uint attribute
136 * nla_get_sint(nla) get payload for a sint attribute
137 * nla_get_u8(nla) get payload for a u8 attribute
138 * nla_get_u16(nla) get payload for a u16 attribute
139 * nla_get_u32(nla) get payload for a u32 attribute
140 * nla_get_u64(nla) get payload for a u64 attribute
141 * nla_get_s8(nla) get payload for a s8 attribute
142 * nla_get_s16(nla) get payload for a s16 attribute
143 * nla_get_s32(nla) get payload for a s32 attribute
144 * nla_get_s64(nla) get payload for a s64 attribute
146 * nla_get_msecs(nla) get payload for a msecs attribute
230 * @len: Type specific length of payload
239 * NLA_BINARY Maximum length of attribute payload
257 * All other Minimum length of attribute payload
579 * @payload: length of message payload
581 static inline int nlmsg_msg_size(int payload) in nlmsg_msg_size() argument
583 return NLMSG_HDRLEN + payload; in nlmsg_msg_size()
588 * @payload: length of message payload
590 static inline int nlmsg_total_size(int payload) in nlmsg_total_size() argument
592 return NLMSG_ALIGN(nlmsg_msg_size(payload)); in nlmsg_total_size()
597 * @payload: length of message payload
599 static inline int nlmsg_padlen(int payload) in nlmsg_padlen() argument
601 return nlmsg_total_size(payload) - nlmsg_msg_size(payload); in nlmsg_padlen()
605 * nlmsg_data - head of message payload
614 * nlmsg_len - length of message payload
623 * nlmsg_payload - message payload if the data fits in the len
627 * Returns: The netlink message payload/data if the length is sufficient,
989 * @payload: length of message payload
993 * the message header and payload.
996 int type, int payload, int flags) in nlmsg_put() argument
998 if (unlikely(skb_tailroom(skb) < nlmsg_total_size(payload))) in nlmsg_put()
1001 return __nlmsg_put(skb, portid, seq, type, payload, flags); in nlmsg_put()
1007 * @size: length of message payload
1012 * the extra payload.
1030 * @payload: length of message payload
1034 * the message header and payload.
1038 int type, int payload, in nlmsg_put_answer() argument
1042 type, payload, flags); in nlmsg_put_answer()
1047 * @payload: size of the message payload
1050 * Use NLMSG_DEFAULT_SIZE if the size of the payload isn't known
1053 static inline struct sk_buff *nlmsg_new(size_t payload, gfp_t flags) in nlmsg_new() argument
1055 return alloc_skb(nlmsg_total_size(payload), flags); in nlmsg_new()
1061 * @payload: size of the message payload
1067 static inline struct sk_buff *nlmsg_new_large(size_t payload) in nlmsg_new_large() argument
1069 return netlink_alloc_large_skb(nlmsg_total_size(payload), 0); in nlmsg_new_large()
1247 * @payload: length of payload
1249 static inline int nla_attr_size(int payload) in nla_attr_size() argument
1251 return NLA_HDRLEN + payload; in nla_attr_size()
1256 * @payload: length of payload
1258 static inline int nla_total_size(int payload) in nla_total_size() argument
1260 return NLA_ALIGN(nla_attr_size(payload)); in nla_total_size()
1265 * @payload: length of payload
1267 static inline int nla_padlen(int payload) in nla_padlen() argument
1269 return nla_total_size(payload) - nla_attr_size(payload); in nla_padlen()
1282 * nla_data - head of payload
1291 * nla_len - length of payload
1729 * nla_get_u32 - return payload of u32 attribute
1738 * nla_get_u32_default - return payload of u32 attribute or default
1752 * nla_get_be32 - return payload of __be32 attribute
1761 * nla_get_be32_default - return payload of be32 attribute or default
1776 * nla_get_le32 - return payload of __le32 attribute
1785 * nla_get_le32_default - return payload of le32 attribute or default
1800 * nla_get_u16 - return payload of u16 attribute
1809 * nla_get_u16_default - return payload of u16 attribute or default
1823 * nla_get_be16 - return payload of __be16 attribute
1832 * nla_get_be16_default - return payload of be16 attribute or default
1847 * nla_get_le16 - return payload of __le16 attribute
1856 * nla_get_le16_default - return payload of le16 attribute or default
1871 * nla_get_u8 - return payload of u8 attribute
1880 * nla_get_u8_default - return payload of u8 attribute or default
1894 * nla_get_u64 - return payload of u64 attribute
1907 * nla_get_u64_default - return payload of u64 attribute or default
1921 * nla_get_uint - return payload of uint attribute
1932 * nla_get_uint_default - return payload of uint attribute or default
1946 * nla_get_be64 - return payload of __be64 attribute
1959 * nla_get_be64_default - return payload of be64 attribute or default
1974 * nla_get_le64 - return payload of __le64 attribute
1983 * nla_get_le64_default - return payload of le64 attribute or default
1998 * nla_get_s32 - return payload of s32 attribute
2007 * nla_get_s32_default - return payload of s32 attribute or default
2021 * nla_get_s16 - return payload of s16 attribute
2030 * nla_get_s16_default - return payload of s16 attribute or default
2044 * nla_get_s8 - return payload of s8 attribute
2053 * nla_get_s8_default - return payload of s8 attribute or default
2067 * nla_get_s64 - return payload of s64 attribute
2080 * nla_get_s64_default - return payload of s64 attribute or default
2094 * nla_get_sint - return payload of uint attribute
2105 * nla_get_sint_default - return payload of sint attribute or default
2119 * nla_get_flag - return payload of flag attribute
2128 * nla_get_msecs - return payload of msecs attribute
2141 * nla_get_msecs_default - return payload of msecs attribute or default
2156 * nla_get_in_addr - return payload of IPv4 address attribute
2165 * nla_get_in_addr_default - return payload of be32 attribute or default
2180 * nla_get_in6_addr - return payload of IPv6 address attribute
2192 * nla_get_bitfield32 - return payload of 32 bitfield attribute
2379 * @payload: length of payload
2381 static inline int nla_total_size_64bit(int payload) in nla_total_size_64bit() argument
2383 return NLA_ALIGN(nla_attr_size(payload)) in nla_total_size_64bit()