【发布时间】:2015-04-28 03:57:18
【问题描述】:
我想将自定义系统调用添加到 freebsd(学校作业)。我谷歌数百次。没有正确的解决方案。 我的作业是:“将自定义系统调用添加到 freebsd 内核并重新编译内核并使用它”。 最后我发现我应该按照这两页中的说明进行操作:
1:http://www.onlamp.com/pub/a/bsd/2003/10/09/adding_system_calls.html
然后
2:https://www.freebsd.org/doc/en/books/handbook/kernelconfig-building.html
它会在编译时显示错误吗:
<sys/parma.h> no such file or directory
<sys/kern.h> no such file or directory
<sys/syscallargs.h> no such file or directory
我从我的文件中删除了这三个包含头文件,然后重新编译它。现在显示其他错误,例如:MAXCPU 在 pcpu.h 文件中未解密。
我错过了什么?我怎样才能完成我的学业?
注意:我在 vbox 中使用 freebsd8
【问题讨论】:
-
也许您应该尝试使用 2003-10-09 的 FreeBSD 版本,因为它是撰写该文章的日期。