Subject: Re: System call LKM offset numbers
To: Scott Barron <sb125499@oak.cats.ohiou.edu>
From: Assar Westerlund <assar@netbsd.org>
List: tech-kern
Date: 08/05/2001 07:03:56
Scott Barron <sb125499@oak.cats.ohiou.edu> writes:
> First, if I have the kernel choose the offset by passing -1 as the second
> argument to MOD_SYSCALL is there a mechanism I can use to look that offset
> up by name?
No, but it's stored in ->lkm_offset and you can specify a script to be
run by modload with `-p' that will get the system call number as
argument three.
> Second, am I correct in thinking that the second element of the struct
> sysent is supposed to be the sum of the sizeof all of the argument types?
Yes, it's typically calculated as sizeof(struct foo_args) where
foo_args are the arguments to the system call.
/assar