在系统调用实现中加载模块

load module in system call implementation

我看过一些向 FreeBSD 添加系统调用的示例,据我了解,我们的实现主体中应该有一个 load 模块,而且每个示例中的负载都是相同的我见过。 加载模块修复了吗?如果没有,我该如何实施?

以下链接是具有相同加载模块的示例:

1-the link which answers about the system call implementation

2-这里有一个系统调用的例子:/usr/share/examples/kld/syscall/module/syscall.c

因为this我知道如果我想添加一个使用Kernel Loadable的系统调用,加载处理程序模块在所有KLD中都是相同的。

"Basically, the load handler function is, as it states, a function that handles the loading and unloading of a KLD. Hence, when a KLD is kldloaded or kldunloaded, this handler is what, at a very simplistic level, gets called."