Lines Matching refs:rc
250 int cpu, rc; in tm_trap_test() local
278 rc = pthread_attr_init(&attr); in tm_trap_test()
279 if (rc) in tm_trap_test()
280 pr_error(rc, "pthread_attr_init()"); in tm_trap_test()
287 rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); in tm_trap_test()
288 if (rc) in tm_trap_test()
289 pr_error(rc, "pthread_attr_setaffinity()"); in tm_trap_test()
298 rc = fflush(0); in tm_trap_test()
299 if (rc) in tm_trap_test()
300 pr_error(rc, "fflush()"); in tm_trap_test()
303 rc = pthread_create(&t0_ping, &attr, ping, NULL); in tm_trap_test()
304 if (rc) in tm_trap_test()
305 pr_error(rc, "pthread_create()"); in tm_trap_test()
310 rc = pthread_create(&t1_pong, &attr, pong, NULL); in tm_trap_test()
311 if (rc) in tm_trap_test()
312 pr_error(rc, "pthread_create()"); in tm_trap_test()
314 rc = pthread_join(t0_ping, NULL); in tm_trap_test()
315 if (rc) in tm_trap_test()
316 pr_error(rc, "pthread_join()"); in tm_trap_test()
318 rc = pthread_join(t1_pong, NULL); in tm_trap_test()
319 if (rc) in tm_trap_test()
320 pr_error(rc, "pthread_join()"); in tm_trap_test()