Lines Matching refs:cpuset_size
63 unsigned int cpuset_size = 1; in main() local
66 while (cpuset_size) { in main()
67 assert(getaffinity(pid, cpuset_size, NULL) == -1); in main()
73 pid, cpuset_size, errstr); in main()
74 cpuset_size <<= 1; in main()
76 assert(cpuset_size); in main()
78 pid, cpuset_size, errstr); in main()
80 cpu_set_t *cpuset = tail_alloc(cpuset_size); in main()
81 getaffinity(pid, cpuset_size, cpuset + 1); in main()
83 pid, cpuset_size, cpuset + 1, errstr); in main()
85 int ret_size = getaffinity(pid, cpuset_size, cpuset); in main()
88 pid, (unsigned) cpuset_size, cpuset, errstr); in main()
89 assert(ret_size <= (int) cpuset_size); in main()
91 printf("sched_getaffinity(%d, %u, [", pid, cpuset_size); in main()
103 CPU_ZERO_S(cpuset_size, cpuset); in main()
104 CPU_SET_S(cpu, cpuset_size, cpuset); in main()
105 if (setaffinity(pid, cpuset_size, cpuset)) in main()
108 pid, cpuset_size, cpu); in main()
110 const unsigned int big_size = cpuset_size < 128 ? 128 : cpuset_size * 2; in main()