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

Function cpuset_update_thread

freebsd/kern/kern_cpuset.c:1028–1039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1026}
1027
1028static struct cpuset *
1029cpuset_update_thread(struct thread *td, struct cpuset *nset)
1030{
1031 struct cpuset *tdset;
1032
1033 tdset = td->td_cpuset;
1034 td->td_cpuset = nset;
1035 td->td_domain.dr_policy = nset->cs_domain;
1036 sched_affinity(td);
1037
1038 return (tdset);
1039}
1040
1041static int
1042cpuset_setproc_test_maskthread(struct cpuset *tdset, cpuset_t *mask,

Callers 2

cpuset_setprocFunction · 0.85
_cpuset_setthreadFunction · 0.85

Calls 1

sched_affinityFunction · 0.70

Tested by

no test coverage detected