Subject: Re: Syscall number space
To: Jason Thorpe <thorpej@shagadelic.org>
From: Darren Reed <darrenr@netbsd.org>
List: tech-kern
Date: 08/26/2007 22:01:00
Jason Thorpe wrote:
> On Aug 26, 2007, at 8:29 PM, Thor Lancelot Simon wrote:
>> Because that's the currently configured limit in syscalls.master.
>
> The only reason that's set like that was to make the number of system
> call slots a power of two (512 happened to be the closest power of
> two). Making it a power of two enables some optimizations in the
> low-level system call handler.
>
> There is no harm in simply making it 1024 (aside from some wasted space).
I looked quickly to see if there was any such beastie but obviously i didn't
look hard enough (or in the right place.) Where should I look to see where
this table is built and used?
Darren