Professional Documents
Culture Documents
OS Internals - Volume I - User Mode
OS Internals - Volume I - User Mode
Table of Contents
0. About This Book
Genealogy
Darwin
MacOS
iOS
TvOS
WatchOS
eOS (TouchBar)
Applications
Frameworks
System Libraries
Kernel Interface
System Calls
Mach Traps
Machine-Specific Calls
Diagnostic Calls
https://newosxbook.com/toc1.html 1/7
2023/10/09 2:25 *OS Internals::Volume I - User Mode
Filesystems
Disk Images
Disk Arbitration
Directories
QuickLook
System Information
Darwin: sysctl
*OS: MobileGestalt
System Configuration
DUET
Printing
assistantd (Siri)
LaunchServices
Preferences
Notifications
User Notifications
emond (MacOS)
Apple Events
https://newosxbook.com/toc1.html 2/7
2023/10/09 2:25 *OS Internals::Volume I - User Mode
Mach-O FileTypes
Header Flags
Load Commands
Program Startup
dyld initialization
Linking
Rebasing
CoreSymbolication.framework
Interposing
Threads
Thread QoS
Dispatch Queues
Queue Attributes
Dispatch Objects
Dispatch Sources
https://newosxbook.com/toc1.html 3/7
2023/10/09 2:25 *OS Internals::Volume I - User Mode
Implementation
Continuations
Dispatching blocks
Debugging libdispatch
libmalloc
The scalable (default) zone
Custom Zones
Zone APIs
Debugging
In the Zone
Purgeable memory
libplatform (os_alloc_once)
libcache
mach vm_map
memory tags
MacOS: Swap
Under pressure:
MacOS: MemoryStatus
*OS: Jetsam
*OS: mmaintenanced
https://newosxbook.com/toc1.html 4/7
2023/10/09 2:25 *OS Internals::Volume I - User Mode
CoreFoundation
CF* Objects
CFRunLoop Internals
Objective-C
A Quick Refresher
Swift
Swiftly evolving: Swift 1 through 4
objc-bridges
Closures
Mangling
Runtime internals
11. The Medium is the Message: Mach IPC (the user mode view)
Ma-xioms
Scenarios
Message format
The host
The host_priv
The task
The task as a remote IPC namespace (port hijacking)
The thread
Special ports
https://newosxbook.com/toc1.html 5/7
2023/10/09 2:25 *OS Internals::Volume I - User Mode
Exception ports
The clock
Multi Node
XPC Domains
GCD Integration
Tracing XPC
launchctl
stackshot
sysdiagnose
spindump
MacOS: systemstats
https://newosxbook.com/toc1.html 6/7
2023/10/09 2:25 *OS Internals::Volume I - User Mode
logd
*OS: aggregated
MacOS: DTrace
fsevents
Post Mortem:
Core dumps
Crash Reporting
https://newosxbook.com/toc1.html 7/7