BSD syscall#537
svc · unix #537
pivot_root
Atomically swaps the system root mount with a new one (privileged).
Prototype
int pivot_root(const char *new_rootfs_path_before, const char *old_rootfs_path_after);Returns: int
Arguments
| Name | Type | Dir | Description |
|---|---|---|---|
| new_rootfs_path_before | const char | - | |
| old_rootfs_path_after | const char | - |
Version history
| XNU tag | macOS | # |
|---|---|---|
| xnu-7195.50.7.100.1 | macOS 11.0 Big Sur | 537 |
| xnu-8019.41.5 | macOS 12.0 Monterey | 537 |
| xnu-8792.41.9 | macOS 13.0 Ventura | 537 |
| xnu-10002.1.13 | macOS 14.0 Sonoma | 537 |
| xnu-11215.1.10 | macOS 15.0 Sequoia | 537 |
| xnu-11417.101.15 | macOS 15.4 Sequoia | 537 |
| xnu-12377.1.9 | macOS 26.0 Tahoe | 537 |
| xnu-10002.41.9 | — | 537 |
| xnu-10002.61.3 | — | 537 |
| xnu-10002.81.5 | — | 537 |
| xnu-10063.101.15 | — | 537 |
| xnu-10063.121.3 | — | 537 |
| xnu-10063.141.1 | — | 537 |
| xnu-11215.41.3 | — | 537 |
| xnu-11215.61.5 | — | 537 |
| xnu-11215.81.4 | — | 537 |
| xnu-11417.121.6 | — | 537 |
| xnu-11417.140.69 | — | 537 |
| xnu-12377.101.15 | — | 537 |
| xnu-12377.41.6 | — | 537 |
| xnu-12377.61.12 | — | 537 |
| xnu-12377.81.4 | — | 537 |
| xnu-7195.101.1 | — | 537 |
| xnu-7195.121.3 | — | 537 |
| xnu-7195.141.2 | — | 537 |
| xnu-7195.60.75 | — | 537 |
| xnu-7195.81.3 | — | 537 |
| xnu-8019.61.5 | — | 537 |
| xnu-8019.80.24 | — | 537 |
| xnu-8020.101.4 | — | 537 |
| xnu-8020.121.3 | — | 537 |
| xnu-8020.140.41 | — | 537 |
| xnu-8792.61.2 | — | 537 |
| xnu-8792.81.2 | — | 537 |
| xnu-8796.101.5 | — | 537 |
| xnu-8796.121.2 | — | 537 |
| xnu-8796.141.3 | — | 537 |
Notes
No prose documentation yet.