Searched refs:yarg (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/tools/net/ynl/lib/ |
D | ynl.c | 260 ynl_cb_error(const struct nlmsghdr *nlh, struct ynl_parse_arg *yarg) in ynl_cb_error() argument 267 yarg->ys->err.code = code; in ynl_cb_error() 274 ynl_ext_ack_check(yarg->ys, nlh, hlen); in ynl_cb_error() 279 static int ynl_cb_done(const struct nlmsghdr *nlh, struct ynl_parse_arg *yarg) in ynl_cb_done() argument 285 yarg->ys->err.code = -err; in ynl_cb_done() 288 ynl_ext_ack_check(yarg->ys, nlh, sizeof(int)); in ynl_cb_done() 297 int ynl_attr_validate(struct ynl_parse_arg *yarg, const struct nlattr *attr) in ynl_attr_validate() argument 306 if (type > yarg->rsp_policy->max_attr) { in ynl_attr_validate() 307 yerr(yarg->ys, YNL_ERROR_INTERNAL, in ynl_attr_validate() 312 policy = &yarg->rsp_policy->table[type]; in ynl_attr_validate() [all …]
|
D | ynl-priv.h | 42 struct ynl_parse_arg *yarg); 102 int ynl_attr_validate(struct ynl_parse_arg *yarg, const struct nlattr *attr); 107 struct ynl_parse_arg yarg; member 113 struct ynl_parse_arg yarg; member 134 int ynl_error_parse(struct ynl_parse_arg *yarg, const char *msg);
|