Lines Matching refs:extack
89 #define NL_SET_ERR_MSG(extack, msg) do { \ argument
91 struct netlink_ext_ack *__extack = (extack); \
97 #define NL_SET_ERR_MSG_MOD(extack, msg) \ argument
98 NL_SET_ERR_MSG((extack), KBUILD_MODNAME ": " msg)
100 #define NL_SET_BAD_ATTR_POLICY(extack, attr, pol) do { \ argument
101 if ((extack)) { \
102 (extack)->bad_attr = (attr); \
103 (extack)->policy = (pol); \
107 #define NL_SET_BAD_ATTR(extack, attr) NL_SET_BAD_ATTR_POLICY(extack, attr, NULL) argument
109 #define NL_SET_ERR_MSG_ATTR_POL(extack, attr, pol, msg) do { \ argument
111 struct netlink_ext_ack *__extack = (extack); \
120 #define NL_SET_ERR_MSG_ATTR(extack, attr, msg) \ argument
121 NL_SET_ERR_MSG_ATTR_POL(extack, attr, NULL, msg)
123 static inline void nl_set_extack_cookie_u64(struct netlink_ext_ack *extack, in nl_set_extack_cookie_u64() argument
128 if (!extack) in nl_set_extack_cookie_u64()
130 memcpy(extack->cookie, &__cookie, sizeof(__cookie)); in nl_set_extack_cookie_u64()
131 extack->cookie_len = sizeof(__cookie); in nl_set_extack_cookie_u64()
134 static inline void nl_set_extack_cookie_u32(struct netlink_ext_ack *extack, in nl_set_extack_cookie_u32() argument
139 if (!extack) in nl_set_extack_cookie_u32()
141 memcpy(extack->cookie, &__cookie, sizeof(__cookie)); in nl_set_extack_cookie_u32()
142 extack->cookie_len = sizeof(__cookie); in nl_set_extack_cookie_u32()
150 const struct netlink_ext_ack *extack);
212 struct netlink_ext_ack *extack; member