I an writing kernel module using this article:
http://www.freesoftwaremagazine.com/articles/writing_a_kernel_module_for_freebsd
I have actually two problems. When I try to include file #include <stdio.h> or any other like unistd e.t.r. It doesn't see them and tells that there are no such file. But it is a lie.
And second problem is that when I try to use in my kernel code function usleep it compiles well but i just cant load this module. It tells that file is not found. But its not true.
What should I change comparing to the info indicated in the article to use function like sleep f.ex. (for now it tells me that this function is unknown). And why it doesn't sees standard include files?
Thanks in advance.
http://www.freesoftwaremagazine.com/articles/writing_a_kernel_module_for_freebsd
I have actually two problems. When I try to include file #include <stdio.h> or any other like unistd e.t.r. It doesn't see them and tells that there are no such file. But it is a lie.
And second problem is that when I try to use in my kernel code function usleep it compiles well but i just cant load this module. It tells that file is not found. But its not true.
What should I change comparing to the info indicated in the article to use function like sleep f.ex. (for now it tells me that this function is unknown). And why it doesn't sees standard include files?
Thanks in advance.