OSX 中 XNU 内核的系统调用列表和文档
我试图弄清楚如何获取 OSX 中 XNU 内核中可用的系统调用的列表和文档。我用谷歌搜索了很多,但没能找到任何有用的东西。据我了解,调用约定与 BSD 相匹配,这是正确的吗?
谢谢
I'm trying to figure out how to get a list of and documentation for the system calls available in the XNU kernel in OSX. I've googled around quite a bit, but haven't been able to find anything of use. As I understand the calling conventions match BSD, is that correct?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“官方”列表位于 Apple 的 Darwin 页面。具体请参阅文件
syscalls XNU 发行版中的 .master
。 (如果缺少您期望的内容,请尝试更新的 XNU 版本。)系统调用的 BSD 部分来自 BSD,但有些 mach 调用遵循完全不同的约定。
您肯定会想阅读 Amit Singh 的 OS X 内核书籍,请参阅该书的网站。它针对 10.4 进行了重写,主要针对 PPC,但仍然是您可以获得的有关内核的最详细信息。
The "official" list is at Darwin page at Apple. Specifically, see the file
syscalls.master
in the XNU distribution. (If something you expect is missing, try a newer XNU version.)The BSD part of the system calls comes from BSD, but there're mach calls which follow quite different conventions.
You'll definitely want to read Amit Singh's OS X kernel book, see the book's website. It's rewritten for 10.4 and mainly for PPC, but still is the greatest detailed info you can get on the kernel.