Lines Matching refs:nprocs
64 wp->scoreboard->nprocs = wp->config->pm_max_children; in fpm_scoreboard_init_main()
242 struct fpm_scoreboard_s *scoreboard, int child_index, unsigned int nprocs) /* {{{*/ in fpm_scoreboard_proc_get_ex() argument
248 if (child_index < 0 || (unsigned int)child_index >= nprocs) { in fpm_scoreboard_proc_get_ex()
267 return fpm_scoreboard_proc_get_ex(scoreboard, child_index, scoreboard->nprocs); in fpm_scoreboard_proc_get()
274 unsigned int nprocs = wp->config->pm_max_children; in fpm_scoreboard_proc_get_from_child() local
278 return fpm_scoreboard_proc_get_ex(scoreboard, child_index, nprocs); in fpm_scoreboard_proc_get_from_child()
342 scoreboard_nprocs_size = sizeof(struct fpm_scoreboard_proc_s) * scoreboard->nprocs; in fpm_scoreboard_copy()
368 for (i = 0; i < scoreboard->nprocs; i++, mem += sizeof(struct fpm_scoreboard_proc_s)) { in fpm_scoreboard_copy()
469 int nprocs = wp->config->pm_max_children; in fpm_scoreboard_proc_alloc() local
476 if (scoreboard->free_proc >= 0 && scoreboard->free_proc < nprocs) { in fpm_scoreboard_proc_alloc()
484 for (i = 0; i < nprocs; i++) { in fpm_scoreboard_proc_alloc()
492 if (i < 0 || i >= nprocs) { in fpm_scoreboard_proc_alloc()
501 if (i + 1 >= nprocs) { in fpm_scoreboard_proc_alloc()