Searched refs:user_ncpus (Results 1 - 1 of 1) sorted by relevance

/illumos-gate/usr/src/uts/common/syscall/
H A Dpset.c182 uint_t user_ncpus = 0, real_ncpus, copy_ncpus; local
187 if (copyin(numcpusp, &user_ncpus, sizeof (uint_t)) != 0)
191 if (user_ncpus > max_ncpus) /* sanity check */
192 user_ncpus = max_ncpus;
193 if (user_ncpus != 0 && cpulistp != NULL)
194 pset_cpus = kmem_alloc(sizeof (processorid_t) * user_ncpus,
197 real_ncpus = user_ncpus;
211 if (user_ncpus != 0 && cpulistp != NULL) {
212 copy_ncpus = MIN(real_ncpus, user_ncpus);
220 kmem_free(pset_cpus, sizeof (processorid_t) * user_ncpus);
[all...]

Completed in 57 milliseconds