[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    RE: syscall list
From:       gerarra () tin ! it
Date:       2005-01-31 21:33:54
Message-ID: 41536AD5000F3F8A () ims3a ! cp ! tin ! it
[Download RAW message or body]

>Hi,
>
>I don't remember how to extract the syscall list from the kernel. There
>was an article some time ago about this, and checking the syscall address
>to make sure it was not changed in the kernel. Could anyone point me to
>this article? I've tried to google around but didn't find it.
>
>Best Regards

In order to mantain ABI compatibility, for every kernel process (sys/proc.h:struct
proc *) is provided a struct sysentvec pointer that contains information
about syscall table to be handled. Normally (when FreeBSD interface is to
be used) it points to sysent array of struct sysent entries. These structures
rappresent associations between number of params for every syscall and syscall
address (the discussion could be deeper but i guess you need just that),
so you can do a little check at them to get what you want.

bye,
rookie

reference:
sys/sysent.h

_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic