cvs commit: src/sys/kern init_sysent.c syscalls.c systrace_args.c src/sys/sys syscall.h sysproto.h

David Xu davidxu at
Tue Mar 4 02:07:59 UTC 2008

Jeff Roberson wrote:

>> One question is how I can determine the size of cpuset the kernel is
>> using ?
> I wrote it to tolerate user masks that were much larger than the kernel 
> mask.  I set the default CPU_SETSIZE in userspace to 128 and in kernel 
> it's MAXCPU.  So in practice an application shouldn't have to redefine 
> CPU_SETSIZE.  If your set is too small the kernel will return ERANGE 
> however.  Unfortunately, if your set is larger than the kernel's 
> CPU_MAXSIZE it'll also return ERANGE.  Maybe I should use different 
> errnos for those cases.

 From my point, userland has to write some urgly code to guess what
kernel code wants, it is rather frustrate.

More information about the cvs-src mailing list