Lines Matching refs:ctx
37 struct tst_rtnl_context *ctx);
38 #define RTNL_DESTROY_CONTEXT(ctx) \
39 tst_rtnl_destroy_context(__FILE__, __LINE__, (ctx))
43 struct tst_rtnl_context *ctx);
44 #define RTNL_SEND(ctx) tst_rtnl_send(__FILE__, __LINE__, (ctx))
48 struct tst_rtnl_context *ctx);
49 #define RTNL_SEND_VALIDATE(ctx) \
50 tst_rtnl_send_validate(__FILE__, __LINE__, (ctx))
53 int tst_rtnl_wait(struct tst_rtnl_context *ctx);
61 struct tst_rtnl_context *ctx);
62 #define RTNL_RECV(ctx) tst_rtnl_recv(__FILE__, __LINE__, (ctx))
66 struct tst_rtnl_context *ctx, const struct nlmsghdr *header,
68 #define RTNL_ADD_MESSAGE(ctx, header, payload, psize) \
69 tst_rtnl_add_message(__FILE__, __LINE__, (ctx), (header), (payload), \
74 struct tst_rtnl_context *ctx, unsigned short type, const void *data,
76 #define RTNL_ADD_ATTR(ctx, type, data, len) \
77 tst_rtnl_add_attr(__FILE__, __LINE__, (ctx), (type), (data), (len))
81 struct tst_rtnl_context *ctx, unsigned short type, const char *data);
82 #define RTNL_ADD_ATTR_STRING(ctx, type, data) \
83 tst_rtnl_add_attr_string(__FILE__, __LINE__, (ctx), (type), (data))
90 struct tst_rtnl_context *ctx, const struct tst_rtnl_attr_list *list);
91 #define RTNL_ADD_ATTR_LIST(ctx, list) \
92 tst_rtnl_add_attr_list(__FILE__, __LINE__, (ctx), (list))
97 * tst_rtnl_send(ctx);
98 * tst_rtnl_wait(ctx);
99 * response = tst_rtnl_recv(ctx);
100 * if (!tst_rtnl_check_acks(ctx, response)) { ... }
104 struct tst_rtnl_context *ctx, struct tst_rtnl_message *response);
105 #define RTNL_CHECK_ACKS(ctx, response) \
106 tst_rtnl_context(__FILE__, __LINE__, (ctx), (response))