user4615534
user4615534

Reputation: 55

load module in system call implementation

I've seen some examples of adding system call to FreeBSD, as I understood , we should have a load module in the body of our implementation, and also this load is the same in every example which I've seen. is the load module fix? if not, how can I implement it?

the following links are the examples of having the same load module:

1-the link which answers about the system call implementation

2- there is an example of system call here: /usr/share/examples/kld/syscall/module/syscall.c

Upvotes: 0

Views: 348

Answers (1)

user4615534
user4615534

Reputation: 55

Because of this I understand that if I want to add a system call using Kernel Loadable, a load handler module is the same in all of 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."

Upvotes: 1

Related Questions