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

Jeff Roberson jroberson at chesapeake.net
Mon Mar 3 04:34:39 UTC 2008


On Mon, 3 Mar 2008, David Xu wrote:

> Jeff Roberson wrote:
>> jeff        2008-03-02 07:41:10 UTC
>>
>>   FreeBSD src repository
>>
>>   Modified files:
>>     sys/kern             init_sysent.c syscalls.c systrace_args.c 
>> sys/sys              syscall.h syscall.mk sysproto.h   Log:
>>    - Regen for cpuset
>>     Sponsored by:   Nokia
>>     Revision  Changes    Path
>>   1.234     +6 -1      src/sys/kern/init_sysent.c
>>   1.218     +6 -1      src/sys/kern/syscalls.c
>>   1.18      +48 -0     src/sys/kern/systrace_args.c
>>   1.215     +7 -2      src/sys/sys/syscall.h
>>   1.170     +7 -2      src/sys/sys/syscall.mk
>>   1.219     +39 -1     src/sys/sys/sysproto.h
>> 
>
> 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.

>
> Regards,
> David Xu
>


More information about the cvs-src mailing list