Lines Matching defs:npt
96 dump_mod_test(struct nlmsghdr *hdr, struct nl_pstate *npt,
99 struct nl_writer *nw = npt->nw;
116 dump_mod_tests(struct nlmsghdr *hdr, struct nl_pstate *npt,
123 int error = dump_mod_test(hdr, npt, mod, test_info);
132 dump_tests(struct nlmsghdr *hdr, struct nl_pstate *npt)
138 error = nl_parse_nlmsg(hdr, &ktest_parser, npt, &attrs);
148 error = dump_mod_tests(hdr, npt, mod, &attrs);
154 if (!nlmsg_end_dump(npt->nw, error, hdr)) {
163 run_test(struct nlmsghdr *hdr, struct nl_pstate *npt)
169 error = nl_parse_nlmsg(hdr, &ktest_parser, npt, &attrs);
174 nlmsg_report_err_msg(npt, "KTEST_ATTR_MOD_NAME not set");
179 nlmsg_report_err_msg(npt, "KTEST_ATTR_TEST_NAME not set");
211 .npt = npt,
213 .buf = npt_alloc(npt, KTEST_MAX_BUF),
236 if (!nlmsg_end_dump(npt->nw, error, hdr)) {
305 return (create_reply(ctx->npt->nw, ctx->hdr, KTEST_CMD_NEWMESSAGE));
312 struct nl_writer *nw = ctx->npt->nw;
333 nlattr_add_u8(ctx->npt->nw, KTEST_MSG_ATTR_LEVEL, msg_level);
334 nlattr_add_string(ctx->npt->nw, KTEST_MSG_ATTR_TEXT, ctx->buf);
340 nlmsg_end(ctx->npt->nw);