Home | History | Annotate | Download | only in libsimplehook_tester

Lines Matching defs:th

215 	struct tester_hook *th;
217 th = xth;
218 ctx = th->th_ctx;
222 __func__, __LINE__, th->th_idx));
224 th->th_stopped = false;
226 while (th->th_stopping) {
228 __func__, __LINE__, th->th_idx));
229 th->th_stopped = true;
233 if (th->th_stopped) {
235 __func__, __LINE__, th->th_idx));
236 th->th_stopped = false;
239 th->th_count++;
241 if (th->th_disestablish && th->th_hook != NULL) {
243 __func__, __LINE__, th->th_idx));
245 th->th_hook, &ctx->ctx_mutex);
246 th->th_hook = NULL;
250 __func__, __LINE__, th->th_idx));
275 struct tester_hook *th;
279 th = node.sysctl_data;
280 ctx = th->th_ctx;
283 val = th->th_hook == NULL ? 0 : 1;
297 if (th->th_hook != NULL) {
300 th->th_hook = simplehook_establish(ctx->ctx_hooks,
301 simplehook_tester_hook, th);
302 KASSERT(th->th_hook != NULL);
304 __func__, __LINE__, th->th_idx, th->th_hook));
307 if (th->th_hook == NULL) {
311 if (th->th_stopping) {
314 th->th_stopping = false;
319 __func__, __LINE__, th->th_idx, th->th_hook));
321 th->th_hook, &ctx->ctx_mutex);
322 th->th_hook = NULL;
325 __func__, __LINE__, th->th_idx));
393 struct tester_hook *th;
398 th = node.sysctl_data;
399 ctx = th->th_ctx;
402 val = th->th_stopping;
414 if (val == true && !th->th_stopping) {
415 th->th_stopping = true;
416 } else if (val == false && th->th_stopping) {
417 th->th_stopping = false;
430 struct tester_hook *th;
434 th = node.sysctl_data;
435 ctx = th->th_ctx;
438 val = th->th_stopped;
452 struct tester_hook *th;
457 th = node.sysctl_data;
458 ctx = th->th_ctx;
461 val = th->th_disestablish;
476 if (val == true && !th->th_disestablish) {
477 th->th_disestablish = true;
478 } else if (val == false && th->th_disestablish) {
479 th->th_disestablish = false;
491 struct tester_hook *th;
495 th = node.sysctl_data;
496 ctx = th->th_ctx;
499 val = th->th_count;
510 th->th_count = val;
671 struct tester_hook *th;
686 th = &ctx->ctx_hook[i];
687 th->th_stopping = false;