MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cpuset_setithread

Function cpuset_setithread

freebsd/kern/kern_cpuset.c:1512–1523  ·  view source on GitHub ↗

* Apply new cpumask to the ithread. */

Source from the content-addressed store, hash-verified

1510 * Apply new cpumask to the ithread.
1511 */
1512int
1513cpuset_setithread(lwpid_t id, int cpu)
1514{
1515 cpuset_t mask;
1516
1517 CPU_ZERO(&mask);
1518 if (cpu == NOCPU)
1519 CPU_COPY(cpuset_root, &mask);
1520 else
1521 CPU_SET(cpu, &mask);
1522 return _cpuset_setthread(id, &mask, NULL);
1523}
1524
1525/*
1526 * Initialize static domainsets after NUMA information is available. This is

Callers 1

_intr_event_bindFunction · 0.85

Calls 1

_cpuset_setthreadFunction · 0.85

Tested by

no test coverage detected