Hello, I am a newbie in FreeBSD. I installed FreeBSD-11.0-RELEASE-amd64 on VMware. I want to write first FreeBSD kernel module. I find this link: How to write a FreeBSD Kernel Module
and now I have some errors in my file, first.c.
And when I use command:
Thanks.
and now I have some errors in my file, first.c.
cc first.c
:
Code:
in file included from first.c:3:
/usr/include/sys/kernel.h:404:2: error: type name requires a specifier or qualifier
TAILQ_ENTRY(intr_config_hook) ich_links;
/usr/include/sys/kernel.h:404:14: error: a parameter list without types is only allowed in a function definition
TAILQ_ENTRY(intr_config_hook) ich_links;
first.c:4:10: fatal error: 'sys/system.h' file not found
#include<sys/system.h>
4 errors generated.
And when I use command:
make
Code:
cd: /usr/src/sys/x86/include: NO such file or directory
*** Error code 2
make: stopped in /usr/home/code/kernel/hmw