Skip to content
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

NameTypeDirDescription
new_rootfs_path_beforeconst char-
old_rootfs_path_afterconst char-

Version history

XNU tagmacOS#
xnu-7195.50.7.100.1macOS 11.0 Big Sur537
xnu-8019.41.5macOS 12.0 Monterey537
xnu-8792.41.9macOS 13.0 Ventura537
xnu-10002.1.13macOS 14.0 Sonoma537
xnu-11215.1.10macOS 15.0 Sequoia537
xnu-11417.101.15macOS 15.4 Sequoia537
xnu-12377.1.9macOS 26.0 Tahoe537
xnu-10002.41.9537
xnu-10002.61.3537
xnu-10002.81.5537
xnu-10063.101.15537
xnu-10063.121.3537
xnu-10063.141.1537
xnu-11215.41.3537
xnu-11215.61.5537
xnu-11215.81.4537
xnu-11417.121.6537
xnu-11417.140.69537
xnu-12377.101.15537
xnu-12377.41.6537
xnu-12377.61.12537
xnu-12377.81.4537
xnu-7195.101.1537
xnu-7195.121.3537
xnu-7195.141.2537
xnu-7195.60.75537
xnu-7195.81.3537
xnu-8019.61.5537
xnu-8019.80.24537
xnu-8020.101.4537
xnu-8020.121.3537
xnu-8020.140.41537
xnu-8792.61.2537
xnu-8792.81.2537
xnu-8796.101.5537
xnu-8796.121.2537
xnu-8796.141.3537

Notes

No prose documentation yet.