简体   繁体   English

Apple记录的iOS底层用户级API

[英]Apple-documented, low-level, userland API for iOS

What is the equivalent of Win32's Kernel32 on iOS? 在iOS上相当于Win32的Kernel32

Otherwise put: What is the lowest-level, fully-documented (by Apple), stable, supported, userland API on iOS for things like: 否则放入:什么是iOS上最低级别的,完整记录的(由Apple发行),稳定,受支持的用户界面API,适用于:

  • Managing memory 管理内存
  • Async file I/O 异步文件I / O
  • Thread management 线程管理
  • Wrappers for synchronization primitives & concurrency constructs 同步原语和并发构造的包装器

So far what I have found has been a mix of a externally-documented mach and BSD API's together miscellaneous headers (OSMalloc.h, for example). 到目前为止,我发现的是混合了外部记录的Mach和BSD API的各种标头(例如OSMalloc.h)。 Additionally, the link Apple provides on it's Kernel Programming Guide to the "Up-to-date versions of the Mach 3 APIs" is dead 此外,Apple在其《 内核编程指南 》上提供的指向“ Mach 3 API的最新版本”的链接已失效。

Start with Apple's opensource XNU project . Apple的开源XNU项目开始 Look to use: 外观使用:

mach ( impl ) 马赫数impl

  • Thread management 线程管理
  • IPC IPC
  • Virtual memory 虚拟内存
  • Concurrency constructs 并发构造
  • Timing 定时

BSD BSD

  • POSIX implementation POSIX实施
  • GCD GCD
  • Async file IO via kqueue/kevent 通过kqueue / kevent异步文件IO
  • Networking 联网

Clang language extensions lang语扩展

  • Wrappers for ldrex, ldaex, strex, stlex, clrex, dmb, dsb, isb ldrex,ldaex,strex,stlex,clrex,dmb,dsb,isb的包装器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM