Lines Matching refs:nlattr

373 		int (*validate)(const struct nlattr *attr,
529 int __nla_validate(const struct nlattr *head, int len, int maxtype,
532 int __nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head,
536 struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype);
537 ssize_t nla_strscpy(char *dst, const struct nlattr *nla, size_t dstsize);
538 char *nla_strdup(const struct nlattr *nla, gfp_t flags);
539 int nla_memcpy(void *dest, const struct nlattr *src, int count);
540 int nla_memcmp(const struct nlattr *nla, const void *data, size_t size);
541 int nla_strcmp(const struct nlattr *nla, const char *str);
542 struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen);
543 struct nlattr *__nla_reserve_64bit(struct sk_buff *skb, int attrtype,
546 struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen);
547 struct nlattr *nla_reserve_64bit(struct sk_buff *skb, int attrtype,
615 static inline struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, in nlmsg_attrdata()
619 return (struct nlattr *) (data + NLMSG_ALIGN(hdrlen)); in nlmsg_attrdata()
678 static inline int nla_parse(struct nlattr **tb, int maxtype, in nla_parse()
679 const struct nlattr *head, int len, in nla_parse()
703 static inline int nla_parse_deprecated(struct nlattr **tb, int maxtype, in nla_parse_deprecated()
704 const struct nlattr *head, int len, in nla_parse_deprecated()
728 static inline int nla_parse_deprecated_strict(struct nlattr **tb, int maxtype, in nla_parse_deprecated_strict()
729 const struct nlattr *head, in nla_parse_deprecated_strict()
751 struct nlattr *tb[], int maxtype, in __nlmsg_parse()
778 struct nlattr *tb[], int maxtype, in nlmsg_parse()
798 struct nlattr *tb[], int maxtype, in nlmsg_parse_deprecated()
819 struct nlattr *tb[], int maxtype, in nlmsg_parse_deprecated_strict()
835 static inline struct nlattr *nlmsg_find_attr(const struct nlmsghdr *nlh, in nlmsg_find_attr()
856 static inline int nla_validate_deprecated(const struct nlattr *head, int len, in nla_validate_deprecated()
879 static inline int nla_validate(const struct nlattr *head, int len, int maxtype, in nla_validate()
1236 static inline int nla_type(const struct nlattr *nla) in nla_type()
1245 static inline void *nla_data(const struct nlattr *nla) in nla_data()
1254 static inline u16 nla_len(const struct nlattr *nla) in nla_len()
1264 static inline int nla_ok(const struct nlattr *nla, int remaining) in nla_ok()
1279 static inline struct nlattr *nla_next(const struct nlattr *nla, int *remaining) in nla_next()
1284 return (struct nlattr *) ((char *) nla + totlen); in nla_next()
1294 static inline struct nlattr *
1295 nla_find_nested(const struct nlattr *nla, int attrtype) in nla_find_nested()
1310 static inline int nla_parse_nested(struct nlattr *tb[], int maxtype, in nla_parse_nested()
1311 const struct nlattr *nla, in nla_parse_nested()
1334 static inline int nla_parse_nested_deprecated(struct nlattr *tb[], int maxtype, in nla_parse_nested_deprecated()
1335 const struct nlattr *nla, in nla_parse_nested_deprecated()
1692 static inline u32 nla_get_u32(const struct nlattr *nla) in nla_get_u32()
1701 static inline __be32 nla_get_be32(const struct nlattr *nla) in nla_get_be32()
1710 static inline __le32 nla_get_le32(const struct nlattr *nla) in nla_get_le32()
1719 static inline u16 nla_get_u16(const struct nlattr *nla) in nla_get_u16()
1728 static inline __be16 nla_get_be16(const struct nlattr *nla) in nla_get_be16()
1737 static inline __le16 nla_get_le16(const struct nlattr *nla) in nla_get_le16()
1746 static inline u8 nla_get_u8(const struct nlattr *nla) in nla_get_u8()
1755 static inline u64 nla_get_u64(const struct nlattr *nla) in nla_get_u64()
1768 static inline u64 nla_get_uint(const struct nlattr *nla) in nla_get_uint()
1779 static inline __be64 nla_get_be64(const struct nlattr *nla) in nla_get_be64()
1792 static inline __le64 nla_get_le64(const struct nlattr *nla) in nla_get_le64()
1801 static inline s32 nla_get_s32(const struct nlattr *nla) in nla_get_s32()
1810 static inline s16 nla_get_s16(const struct nlattr *nla) in nla_get_s16()
1819 static inline s8 nla_get_s8(const struct nlattr *nla) in nla_get_s8()
1828 static inline s64 nla_get_s64(const struct nlattr *nla) in nla_get_s64()
1841 static inline s64 nla_get_sint(const struct nlattr *nla) in nla_get_sint()
1852 static inline int nla_get_flag(const struct nlattr *nla) in nla_get_flag()
1863 static inline unsigned long nla_get_msecs(const struct nlattr *nla) in nla_get_msecs()
1874 static inline __be32 nla_get_in_addr(const struct nlattr *nla) in nla_get_in_addr()
1883 static inline struct in6_addr nla_get_in6_addr(const struct nlattr *nla) in nla_get_in6_addr()
1895 static inline struct nla_bitfield32 nla_get_bitfield32(const struct nlattr *nla) in nla_get_bitfield32()
1908 static inline void *nla_memdup_noprof(const struct nlattr *src, gfp_t gfp) in nla_memdup_noprof()
1925 static inline struct nlattr *nla_nest_start_noflag(struct sk_buff *skb, in nla_nest_start_noflag()
1928 struct nlattr *start = (struct nlattr *)skb_tail_pointer(skb); in nla_nest_start_noflag()
1946 static inline struct nlattr *nla_nest_start(struct sk_buff *skb, int attrtype) in nla_nest_start()
1961 static inline int nla_nest_end(struct sk_buff *skb, struct nlattr *start) in nla_nest_end()
1975 static inline void nla_nest_cancel(struct sk_buff *skb, struct nlattr *start) in nla_nest_cancel()
1994 static inline int __nla_validate_nested(const struct nlattr *start, int maxtype, in __nla_validate_nested()
2004 nla_validate_nested(const struct nlattr *start, int maxtype, in nla_validate_nested()
2013 nla_validate_nested_deprecated(const struct nlattr *start, int maxtype, in nla_validate_nested_deprecated()
2125 static inline bool nla_is_last(const struct nlattr *nla, int rem) in nla_is_last()