Lines Matching refs:extack
91 #define NL_SET_ERR_MSG(extack, msg) do { \ argument
93 struct netlink_ext_ack *__extack = (extack); \
101 #define NL_SET_ERR_MSG_MOD(extack, msg) \ argument
102 NL_SET_ERR_MSG((extack), KBUILD_MODNAME ": " msg)
104 #define NL_SET_BAD_ATTR_POLICY(extack, attr, pol) do { \ argument
105 if ((extack)) { \
106 (extack)->bad_attr = (attr); \
107 (extack)->policy = (pol); \
111 #define NL_SET_BAD_ATTR(extack, attr) NL_SET_BAD_ATTR_POLICY(extack, attr, NULL) argument
113 #define NL_SET_ERR_MSG_ATTR_POL(extack, attr, pol, msg) do { \ argument
115 struct netlink_ext_ack *__extack = (extack); \
126 #define NL_SET_ERR_MSG_ATTR(extack, attr, msg) \ argument
127 NL_SET_ERR_MSG_ATTR_POL(extack, attr, NULL, msg)
129 static inline void nl_set_extack_cookie_u64(struct netlink_ext_ack *extack, in nl_set_extack_cookie_u64() argument
132 if (!extack) in nl_set_extack_cookie_u64()
134 memcpy(extack->cookie, &cookie, sizeof(cookie)); in nl_set_extack_cookie_u64()
135 extack->cookie_len = sizeof(cookie); in nl_set_extack_cookie_u64()
138 static inline void nl_set_extack_cookie_u32(struct netlink_ext_ack *extack, in nl_set_extack_cookie_u32() argument
141 if (!extack) in nl_set_extack_cookie_u32()
143 memcpy(extack->cookie, &cookie, sizeof(cookie)); in nl_set_extack_cookie_u32()
144 extack->cookie_len = sizeof(cookie); in nl_set_extack_cookie_u32()
152 const struct netlink_ext_ack *extack);
214 struct netlink_ext_ack *extack; member