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

Function taskqgroup_binder

freebsd/kern/subr_gtaskqueue.c:755–773  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

753}
754
755static void
756taskqgroup_binder(void *ctx)
757{
758 struct taskq_bind_task *gtask;
759 cpuset_t mask;
760 int error;
761
762 gtask = ctx;
763 CPU_ZERO(&mask);
764 CPU_SET(gtask->bt_cpuid, &mask);
765 error = cpuset_setthread(curthread->td_tid, &mask);
766 thread_lock(curthread);
767 sched_bind(curthread, gtask->bt_cpuid);
768 thread_unlock(curthread);
769
770 if (error)
771 printf("%s: binding curthread failed: %d\n", __func__, error);
772 free(gtask, M_DEVBUF);
773}
774
775void
776taskqgroup_bind(struct taskqgroup *qgroup)

Callers

nothing calls this directly

Calls 4

cpuset_setthreadFunction · 0.85
sched_bindFunction · 0.70
printfFunction · 0.70
freeFunction · 0.70

Tested by

no test coverage detected