FreeBSD/sys/kern/sched_ule.c
/*
 * Find the cpu with the least load via the least loaded path that has a
 * lowpri greater than pri  pri.  A pri of -1 indicates any priority is
 * acceptable.
 */
Find the cpu with the least load via the least loaded path that has a
lowpri greater than pri  pri.  A pri of -1 indicates any priority is
acceptable.
Find the cpu with the least load via the least loaded path that has a lowpri greater than pri pri . A pri of - 1 indicates any priority is acceptable .
static inline int
sched_lowest(const struct cpu_group *cg, cpuset_t mask, int pri, int maxload,
    int prefer)
{
	struct cpu_search low;
	low.cs_cpu = -1;
	low.cs_prefer = prefer;
	low.cs_mask = mask;
	low.cs_pri = pri;
	low.cs_limit = maxload;
	cpu_search_lowest(cg, &low);
	return low.cs_cpu;
}
static inline int sched_lowest ( const struct cpu_group * cg , cpuset_t mask , int pri , int maxload , int prefer ) { struct cpu_search low ; low . cs_cpu = -1 ; low . cs_prefer = prefer ; low . cs_mask = mask ; low . cs_pri = pri ; low . cs_limit = maxload ; cpu_search_lowest ( cg , & low ) ; return low . cs_cpu ; }
Find the cpu with the least load via the least loaded path that has a
 lowpri greater than pri  pri.
Find the cpu with the least load via the least loaded path that has a lowpri greater than pri pri .