Lines Matching defs:id
51 RTTEST_SIGNAL, /* 11 Signal other test thread, data = thread id */
58 int i, id, ret = -EINVAL;
97 id = td->opdata;
98 if (id < 0 || id >= MAX_RT_TEST_MUTEXES)
101 td->mutexes[id] = 1;
103 rt_mutex_lock(&mutexes[id]);
105 td->mutexes[id] = 4;
110 id = td->opdata;
111 if (id < 0 || id >= MAX_RT_TEST_MUTEXES)
114 td->mutexes[id] = 1;
116 ret = rt_mutex_lock_interruptible(&mutexes[id], 0);
118 td->mutexes[id] = ret ? 0 : 4;
122 id = td->opdata;
123 if (id < 0 || id >= MAX_RT_TEST_MUTEXES || td->mutexes[id] != 4)
127 rt_mutex_unlock(&mutexes[id]);
129 td->mutexes[id] = 0;
308 tid = td->sysdev.id;
370 tsk = threads[td->sysdev.id];
387 mutexes[td->sysdev.id].owner);
399 static int init_test_thread(int id)
401 thread_data[id].sysdev.cls = &rttest_sysclass;
402 thread_data[id].sysdev.id = id;
404 threads[id] = kthread_run(test_func, &thread_data[id], "rt-test-%d", id);
405 if (IS_ERR(threads[id]))
406 return PTR_ERR(threads[id]);
408 return sysdev_register(&thread_data[id].sysdev);