Lines Matching full:attribute
66 * nlmsg_find_attr() find an attribute in a message
78 * Attribute Format:
89 * struct nlattr netlink attribute header
91 * Attribute Construction:
92 * nla_reserve(skb, type, len) reserve room for an attribute
93 * nla_reserve_nohdr(skb, len) reserve room for an attribute w/o hdr
94 * nla_put(skb, type, len, data) add attribute to skb
95 * nla_put_nohdr(skb, len, data) add attribute w/o hdr
98 * Attribute Construction for Basic Types:
99 * nla_put_u8(skb, type, value) add u8 attribute to skb
100 * nla_put_u16(skb, type, value) add u16 attribute to skb
101 * nla_put_u32(skb, type, value) add u32 attribute to skb
103 * value, padattr) add u64 attribute to skb
104 * nla_put_s8(skb, type, value) add s8 attribute to skb
105 * nla_put_s16(skb, type, value) add s16 attribute to skb
106 * nla_put_s32(skb, type, value) add s32 attribute to skb
108 * padattr) add s64 attribute to skb
109 * nla_put_string(skb, type, str) add string attribute to skb
110 * nla_put_flag(skb, type) add flag attribute to skb
112 * padattr) add msecs attribute to skb
113 * nla_put_in_addr(skb, type, addr) add IPv4 address attribute to skb
114 * nla_put_in6_addr(skb, type, addr) add IPv6 address attribute to skb
117 * nla_nest_start(skb, type) start a nested attribute
118 * nla_nest_end(skb, nla) finalize a nested attribute
119 * nla_nest_cancel(skb, nla) cancel nested attribute construction
121 * Attribute Length Calculations:
122 * nla_attr_size(payload) length of attribute w/o padding
123 * nla_total_size(payload) length of attribute w/ padding
126 * Attribute Payload Access:
127 * nla_data(nla) head of attribute payload
128 * nla_len(nla) length of attribute payload
130 * Attribute Payload Access for Basic Types:
131 * nla_get_u8(nla) get payload for a u8 attribute
132 * nla_get_u16(nla) get payload for a u16 attribute
133 * nla_get_u32(nla) get payload for a u32 attribute
134 * nla_get_u64(nla) get payload for a u64 attribute
135 * nla_get_s8(nla) get payload for a s8 attribute
136 * nla_get_s16(nla) get payload for a s16 attribute
137 * nla_get_s32(nla) get payload for a s32 attribute
138 * nla_get_s64(nla) get payload for a s64 attribute
140 * nla_get_msecs(nla) get payload for a msecs attribute
142 * Attribute Misc:
143 * nla_memcpy(dest, nla, count) copy attribute into memory
144 * nla_memcmp(nla, data, size) compare attribute with memory area
145 * nla_strlcpy(dst, nla, size) copy attribute to a sized string
146 * nla_strcmp(nla, str) compare attribute with string
148 * Attribute Parsing:
150 * nla_next(nla, remaining) get next netlink attribute
153 * nla_find() find attribute in stream of attributes
154 * nla_find_nested() find attribute in nested attributes
163 * Standard attribute types to specify validation policy
189 * struct nla_policy - attribute validation policy
190 * @type: Type of attribute or NLA_UNSPEC
194 * accessible by attribute type up to the highest identifier to be expected.
200 * NLA_BINARY Maximum length of attribute payload
211 * NLA_BITFIELD32 A 32-bit bitmap/bitselector attribute
212 * All other Minimum length of attribute payload
384 * @maxtype: maximum attribute type to be expected
403 * nlmsg_find_attr - find a specific attribute in a netlink message
406 * @attrtype: type of attribute to look for
408 * Returns the first attribute which matches the specified type.
421 * @maxtype: maximum attribute type to be expected
451 * @pos: loop counter, set to current attribute
656 * nla_attr_size - length of attribute not including padding
665 * nla_total_size - total length of attribute including padding
674 * nla_padlen - length of padding at the tail of attribute
683 * nla_type - attribute type
684 * @nla: netlink attribute
693 * @nla: netlink attribute
702 * @nla: netlink attribute
710 * nla_ok - check if the netlink attribute fits into the remaining bytes
711 * @nla: netlink attribute
712 * @remaining: number of bytes remaining in attribute stream
722 * nla_next - next netlink attribute in attribute stream
723 * @nla: netlink attribute
724 * @remaining: number of bytes remaining in attribute stream
726 * Returns the next netlink attribute in the attribute stream and
727 * decrements remaining by the size of the current attribute.
738 * nla_find_nested - find attribute in a set of nested attributes
739 * @nla: attribute containing the nested attributes
740 * @attrtype: type of attribute to look for
742 * Returns the first attribute which matches the specified type.
753 * @maxtype: maximum attribute type to be expected
754 * @nla: attribute containing the nested attributes
770 * nla_put_u8 - Add a u8 netlink attribute to a socket buffer
771 * @skb: socket buffer to add attribute to
772 * @attrtype: attribute type
784 * nla_put_u16 - Add a u16 netlink attribute to a socket buffer
785 * @skb: socket buffer to add attribute to
786 * @attrtype: attribute type
797 * nla_put_be16 - Add a __be16 netlink attribute to a socket buffer
798 * @skb: socket buffer to add attribute to
799 * @attrtype: attribute type
810 * nla_put_net16 - Add 16-bit network byte order netlink attribute to a socket buffer
811 * @skb: socket buffer to add attribute to
812 * @attrtype: attribute type
823 * nla_put_le16 - Add a __le16 netlink attribute to a socket buffer
824 * @skb: socket buffer to add attribute to
825 * @attrtype: attribute type
836 * nla_put_u32 - Add a u32 netlink attribute to a socket buffer
837 * @skb: socket buffer to add attribute to
838 * @attrtype: attribute type
849 * nla_put_be32 - Add a __be32 netlink attribute to a socket buffer
850 * @skb: socket buffer to add attribute to
851 * @attrtype: attribute type
862 * nla_put_net32 - Add 32-bit network byte order netlink attribute to a socket buffer
863 * @skb: socket buffer to add attribute to
864 * @attrtype: attribute type
875 * nla_put_le32 - Add a __le32 netlink attribute to a socket buffer
876 * @skb: socket buffer to add attribute to
877 * @attrtype: attribute type
888 * nla_put_u64_64bit - Add a u64 netlink attribute to a skb and align it
889 * @skb: socket buffer to add attribute to
890 * @attrtype: attribute type
892 * @padattr: attribute type for the padding
903 * nla_put_be64 - Add a __be64 netlink attribute to a socket buffer and align it
904 * @skb: socket buffer to add attribute to
905 * @attrtype: attribute type
907 * @padattr: attribute type for the padding
919 * @skb: socket buffer to add attribute to
920 * @attrtype: attribute type
922 * @padattr: attribute type for the padding
934 * nla_put_le64 - Add a __le64 netlink attribute to a socket buffer and align it
935 * @skb: socket buffer to add attribute to
936 * @attrtype: attribute type
938 * @padattr: attribute type for the padding
949 * nla_put_s8 - Add a s8 netlink attribute to a socket buffer
950 * @skb: socket buffer to add attribute to
951 * @attrtype: attribute type
962 * nla_put_s16 - Add a s16 netlink attribute to a socket buffer
963 * @skb: socket buffer to add attribute to
964 * @attrtype: attribute type
975 * nla_put_s32 - Add a s32 netlink attribute to a socket buffer
976 * @skb: socket buffer to add attribute to
977 * @attrtype: attribute type
988 * nla_put_s64 - Add a s64 netlink attribute to a socket buffer and align it
989 * @skb: socket buffer to add attribute to
990 * @attrtype: attribute type
992 * @padattr: attribute type for the padding
1003 * nla_put_string - Add a string netlink attribute to a socket buffer
1004 * @skb: socket buffer to add attribute to
1005 * @attrtype: attribute type
1015 * nla_put_flag - Add a flag netlink attribute to a socket buffer
1016 * @skb: socket buffer to add attribute to
1017 * @attrtype: attribute type
1025 * nla_put_msecs - Add a msecs netlink attribute to a skb and align it
1026 * @skb: socket buffer to add attribute to
1027 * @attrtype: attribute type
1029 * @padattr: attribute type for the padding
1040 * nla_put_in_addr - Add an IPv4 address netlink attribute to a socket
1042 * @skb: socket buffer to add attribute to
1043 * @attrtype: attribute type
1055 * nla_put_in6_addr - Add an IPv6 address netlink attribute to a socket
1057 * @skb: socket buffer to add attribute to
1058 * @attrtype: attribute type
1068 * nla_get_u32 - return payload of u32 attribute
1069 * @nla: u32 netlink attribute
1077 * nla_get_be32 - return payload of __be32 attribute
1078 * @nla: __be32 netlink attribute
1086 * nla_get_le32 - return payload of __le32 attribute
1087 * @nla: __le32 netlink attribute
1095 * nla_get_u16 - return payload of u16 attribute
1096 * @nla: u16 netlink attribute
1104 * nla_get_be16 - return payload of __be16 attribute
1105 * @nla: __be16 netlink attribute
1113 * nla_get_le16 - return payload of __le16 attribute
1114 * @nla: __le16 netlink attribute
1122 * nla_get_u8 - return payload of u8 attribute
1123 * @nla: u8 netlink attribute
1131 * nla_get_u64 - return payload of u64 attribute
1132 * @nla: u64 netlink attribute
1144 * nla_get_be64 - return payload of __be64 attribute
1145 * @nla: __be64 netlink attribute
1157 * nla_get_le64 - return payload of __le64 attribute
1158 * @nla: __le64 netlink attribute
1166 * nla_get_s32 - return payload of s32 attribute
1167 * @nla: s32 netlink attribute
1175 * nla_get_s16 - return payload of s16 attribute
1176 * @nla: s16 netlink attribute
1184 * nla_get_s8 - return payload of s8 attribute
1185 * @nla: s8 netlink attribute
1193 * nla_get_s64 - return payload of s64 attribute
1194 * @nla: s64 netlink attribute
1206 * nla_get_flag - return payload of flag attribute
1207 * @nla: flag netlink attribute
1215 * nla_get_msecs - return payload of msecs attribute
1216 * @nla: msecs netlink attribute
1228 * nla_get_in_addr - return payload of IPv4 address attribute
1229 * @nla: IPv4 address netlink attribute
1237 * nla_get_in6_addr - return payload of IPv6 address attribute
1238 * @nla: IPv6 address netlink attribute
1249 * nla_get_bitfield32 - return payload of 32 bitfield attribute
1250 * @nla: nla_bitfield32 attribute
1261 * nla_memdup - duplicate attribute memory (kmemdup)
1262 * @src: netlink attribute to duplicate from
1273 * @attrtype: attribute type of container
1275 * Returns the container attribute
1290 * @start: container attribute
1292 * Corrects the container attribute header to include the all
1306 * @start: container attribute
1308 * Removes the container attribute and including all nested
1318 * @start: container attribute
1319 * @maxtype: maximum attribute type to be expected
1323 * Validates all attributes in the nested attribute stream against the
1338 * nla_need_padding_for_64bit - test 64-bit alignment of the next attribute
1341 * Return true if padding is needed to align the next attribute (nla_data()) to
1348 * if the skb->data _is_ aligned. A NOP attribute, plus in nla_need_padding_for_64bit()
1349 * nlattr header for next attribute, will make nla_data() in nla_need_padding_for_64bit()
1359 * nla_align_64bit - 64-bit align the nla_data() of next attribute
1361 * @padattr: attribute type for the padding
1363 * Conditionally emit a padding netlink attribute in order to make
1364 * the next attribute we emit have a 64-bit aligned nla_data() area.
1380 * nla_total_size_64bit - total length of attribute including padding
1394 * @pos: loop counter, set to current attribute
1395 * @head: head of attribute stream
1396 * @len: length of attribute stream
1406 * @pos: loop counter, set to current attribute
1407 * @nla: attribute containing the nested attributes
1414 * nla_is_last - Test if attribute is last in stream
1415 * @nla: attribute to test