Lines Matching refs:extack

98 #define NL_SET_ERR_MSG(extack, msg) do {		\
100 struct netlink_ext_ack *__extack = (extack); \
111 #define NL_SET_ERR_MSG_FMT(extack, fmt, args...) do { \
112 struct netlink_ext_ack *__extack = (extack); \
119 net_warn_ratelimited("%s" fmt "%s", "truncated extack: ", \
127 #define NL_SET_ERR_MSG_MOD(extack, msg) \
128 NL_SET_ERR_MSG((extack), KBUILD_MODNAME ": " msg)
130 #define NL_SET_ERR_MSG_FMT_MOD(extack, fmt, args...) \
131 NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args)
133 #define NL_SET_ERR_MSG_WEAK(extack, msg) do { \
134 if ((extack) && !(extack)->_msg) \
135 NL_SET_ERR_MSG((extack), msg); \
138 #define NL_SET_ERR_MSG_WEAK_MOD(extack, msg) do { \
139 if ((extack) && !(extack)->_msg) \
140 NL_SET_ERR_MSG_MOD((extack), msg); \
143 #define NL_SET_BAD_ATTR_POLICY(extack, attr, pol) do { \
144 if ((extack)) { \
145 (extack)->bad_attr = (attr); \
146 (extack)->policy = (pol); \
150 #define NL_SET_BAD_ATTR(extack, attr) NL_SET_BAD_ATTR_POLICY(extack, attr, NULL)
152 #define NL_SET_ERR_MSG_ATTR_POL(extack, attr, pol, msg) do { \
154 struct netlink_ext_ack *__extack = (extack); \
165 #define NL_SET_ERR_MSG_ATTR_POL_FMT(extack, attr, pol, fmt, args...) do { \
166 struct netlink_ext_ack *__extack = (extack); \
174 net_warn_ratelimited("%s" fmt "%s", "truncated extack: ", \
184 #define NL_SET_ERR_MSG_ATTR(extack, attr, msg) \
185 NL_SET_ERR_MSG_ATTR_POL(extack, attr, NULL, msg)
187 #define NL_SET_ERR_MSG_ATTR_FMT(extack, attr, msg, args...) \
188 NL_SET_ERR_MSG_ATTR_POL_FMT(extack, attr, NULL, msg, ##args)
190 #define NL_SET_ERR_ATTR_MISS(extack, nest, type) do { \
191 struct netlink_ext_ack *__extack = (extack); \
199 #define NL_REQ_ATTR_CHECK(extack, nest, tb, type) ({ \
206 NL_SET_ERR_ATTR_MISS((extack), (nest), __attr); \
210 static inline void nl_set_extack_cookie_u64(struct netlink_ext_ack *extack,
213 if (!extack)
215 memcpy(extack->cookie, &cookie, sizeof(cookie));
216 extack->cookie_len = sizeof(cookie);
224 const struct netlink_ext_ack *extack);
289 struct netlink_ext_ack *extack;
323 struct netlink_ext_ack *extack;