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

Function taskqgroup_cpu_create

freebsd/kern/subr_gtaskqueue.c:611–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609};
610
611static void
612taskqgroup_cpu_create(struct taskqgroup *qgroup, int idx, int cpu)
613{
614 struct taskqgroup_cpu *qcpu;
615
616 qcpu = &qgroup->tqg_queue[idx];
617 LIST_INIT(&qcpu->tgc_tasks);
618 qcpu->tgc_taskq = gtaskqueue_create_fast(NULL, M_WAITOK,
619 taskqueue_thread_enqueue, &qcpu->tgc_taskq);
620 gtaskqueue_start_threads(&qcpu->tgc_taskq, 1, PI_SOFT,
621 "%s_%d", qgroup->tqg_name, idx);
622 qcpu->tgc_cpu = cpu;
623}
624
625/*
626 * Find the taskq with least # of tasks that doesn't currently have any

Callers 1

taskqgroup_createFunction · 0.85

Calls 2

gtaskqueue_create_fastFunction · 0.85
gtaskqueue_start_threadsFunction · 0.85

Tested by

no test coverage detected