FreeBSD kernel system call

Andrey V. Elsukov bu7cher at yandex.ru
Wed Jun 19 13:49:44 UTC 2019


On 19.06.2019 16:23, Alexandru Goia wrote:
> Greetings !
> 
> I am trying to write the code to a Unix system call, on the
> FreeBSD 12.0 system. I managed to do that on Linux :
> 
> http://romania-acknowledges-stars.blogspot.com/2018/10/angel-call-in-kernel.html
> 
> but I find hard, without proper documentation, to implement it
> on FreeBSD.
> 
> I am in trouble understanding the presence of SYSCALL_MODULE(9), and
> its meaning and usage.

Using SYSCALL_MODULE() you can create kernel module with new syscall,
then load this module in run-time and use this syscall in your
application. You can find examples for both kernel module and test
program in referred by manual page location.

-- 
WBR, Andrey V. Elsukov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20190619/389d8bfb/attachment.sig>


More information about the freebsd-hackers mailing list