Lines Matching refs:attrtype
243 int len, int attrtype);
250 extern struct nlattr * __nla_reserve(struct sk_buff *skb, int attrtype,
253 extern struct nlattr * nla_reserve(struct sk_buff *skb, int attrtype,
256 extern void __nla_put(struct sk_buff *skb, int attrtype,
260 extern int nla_put(struct sk_buff *skb, int attrtype,
398 int hdrlen, int attrtype) in nlmsg_find_attr() argument
401 nlmsg_attrlen(nlh, hdrlen), attrtype); in nlmsg_find_attr()
731 nla_find_nested(const struct nlattr *nla, int attrtype) in nla_find_nested() argument
733 return nla_find(nla_data(nla), nla_len(nla), attrtype); in nla_find_nested()
758 static inline int nla_put_u8(struct sk_buff *skb, int attrtype, u8 value) in nla_put_u8() argument
760 return nla_put(skb, attrtype, sizeof(u8), &value); in nla_put_u8()
769 static inline int nla_put_u16(struct sk_buff *skb, int attrtype, u16 value) in nla_put_u16() argument
771 return nla_put(skb, attrtype, sizeof(u16), &value); in nla_put_u16()
780 static inline int nla_put_u32(struct sk_buff *skb, int attrtype, u32 value) in nla_put_u32() argument
782 return nla_put(skb, attrtype, sizeof(u32), &value); in nla_put_u32()
791 static inline int nla_put_u64(struct sk_buff *skb, int attrtype, u64 value) in nla_put_u64() argument
793 return nla_put(skb, attrtype, sizeof(u64), &value); in nla_put_u64()
802 static inline int nla_put_string(struct sk_buff *skb, int attrtype, in nla_put_string() argument
805 return nla_put(skb, attrtype, strlen(str) + 1, str); in nla_put_string()
813 static inline int nla_put_flag(struct sk_buff *skb, int attrtype) in nla_put_flag() argument
815 return nla_put(skb, attrtype, 0, NULL); in nla_put_flag()
824 static inline int nla_put_msecs(struct sk_buff *skb, int attrtype, in nla_put_msecs() argument
828 return nla_put(skb, attrtype, sizeof(u64), &tmp); in nla_put_msecs()
831 #define NLA_PUT(skb, attrtype, attrlen, data) \ argument
833 if (unlikely(nla_put(skb, attrtype, attrlen, data) < 0)) \
837 #define NLA_PUT_TYPE(skb, type, attrtype, value) \ argument
840 NLA_PUT(skb, attrtype, sizeof(type), &__tmp); \
843 #define NLA_PUT_U8(skb, attrtype, value) \ argument
844 NLA_PUT_TYPE(skb, u8, attrtype, value)
846 #define NLA_PUT_U16(skb, attrtype, value) \ argument
847 NLA_PUT_TYPE(skb, u16, attrtype, value)
849 #define NLA_PUT_LE16(skb, attrtype, value) \ argument
850 NLA_PUT_TYPE(skb, __le16, attrtype, value)
852 #define NLA_PUT_BE16(skb, attrtype, value) \ argument
853 NLA_PUT_TYPE(skb, __be16, attrtype, value)
855 #define NLA_PUT_NET16(skb, attrtype, value) \ argument
856 NLA_PUT_BE16(skb, attrtype | NLA_F_NET_BYTEORDER, value)
858 #define NLA_PUT_U32(skb, attrtype, value) \ argument
859 NLA_PUT_TYPE(skb, u32, attrtype, value)
861 #define NLA_PUT_BE32(skb, attrtype, value) \ argument
862 NLA_PUT_TYPE(skb, __be32, attrtype, value)
864 #define NLA_PUT_NET32(skb, attrtype, value) \ argument
865 NLA_PUT_BE32(skb, attrtype | NLA_F_NET_BYTEORDER, value)
867 #define NLA_PUT_U64(skb, attrtype, value) \ argument
868 NLA_PUT_TYPE(skb, u64, attrtype, value)
870 #define NLA_PUT_BE64(skb, attrtype, value) \ argument
871 NLA_PUT_TYPE(skb, __be64, attrtype, value)
873 #define NLA_PUT_NET64(skb, attrtype, value) \ argument
874 NLA_PUT_BE64(skb, attrtype | NLA_F_NET_BYTEORDER, value)
876 #define NLA_PUT_STRING(skb, attrtype, value) \ argument
877 NLA_PUT(skb, attrtype, strlen(value) + 1, value)
879 #define NLA_PUT_FLAG(skb, attrtype) \ argument
880 NLA_PUT(skb, attrtype, 0, NULL)
882 #define NLA_PUT_MSECS(skb, attrtype, jiffies) \ argument
883 NLA_PUT_U64(skb, attrtype, jiffies_to_msecs(jiffies))
994 static inline struct nlattr *nla_nest_start(struct sk_buff *skb, int attrtype) in nla_nest_start() argument
998 if (nla_put(skb, attrtype, 0, NULL) < 0) in nla_nest_start()