在 FreeBSD 中通过 KLD 创建新的系统调用

发布于 2024-09-26 10:17:12 字数 70 浏览 1 评论 0原文

有没有关于通过内核可加载模块向 FreeBSD 添加系统调用的好的(入门级)教程?具体来说,方法所需的形式、从进程获取信息等。

Are there any good (entry-level) tutorials on adding system calls to FreeBSD via kernel loadable modules? Specifically, the required form of the methods, getting information from processes, etc.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

や三分注定 2024-10-03 10:17:12

我很高兴看到你们的教授给你们布置了如此实用的作业。我希望我有这样的教授。

无论如何,问题是当您在内核域中工作时,您几乎找不到任何资源。在内核领域工作的人不会记录东西或编写教程。因此,很难找到任何“入门级”文档。另外,即使你找到任何这样的教程,内核中的东西也在不断变化,文档也不会更新。当我开始时,我必须通过阅读内核代码来学习东西。

另一件重要的事情是 Linux 比任何 UNIX 都有更多的文档记录。有时您可以阅读 Linux 内容并将这些知识移植到 UNIX。抱怨够了。现在这里是可能对您有帮助的资源。

BSD UNIX:

Linux:

I'm really happy to see that your professor is giving you such practical assignments. I wish I had such profs.

Anyway, the thing is when you are working in the kernel domain you can hardly find any resources. People who are working in kernel domain don't document stuff or write tutorials. So, its really hard to find any "Entry Level" documents. Also, even if you find any such tutorial, the things in kernel keeps on changing and document wont be updated. When I started I had to learn things by reading the kernel code.

Another important thing is Linux is more documented than any UNIX. Sometimes you can read Linux stuff and port that knowledge to UNIX. Enough with the complaining. Now here are the resources that might help you.

BSD UNIX:

Linux:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文