#include <mach/vfs_nspace.h>

mach/vfs_nspace.h Kernel.framework

includes: Kernel/string.h, Kernel/mach/ndr.h, Kernel/mach/boolean.h, Kernel/mach/kern_return.h, Kernel/mach/notify.h, mach/mach_types.h, mach/message.h, Kernel/mach/mig_errors.h, mach/port.h, Availability.h, Kernel/mach/std_types.h, Kernel/mach/mig.h, Kernel/mach/mig.h, mach/mach_types.h, sys/cdefs.h
8 functions · 3 macros

macro_vfs_nspace_user_

#define _vfs_nspace_user_ 

macrovfs_nspace_MSG_COUNT

#define vfs_nspace_MSG_COUNT 8

functionsend_nspace_handle

extern kern_return_t send_nspace_handle(
	mach_port_t nspace_handler_port,
	uint32_t pid,
	vfs_path_t path,
	int *handler_error
)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/mach/vfs_nspace.defs, bsd/vfs/vfs_syscalls.c
MIG user-side stub (UserPrefix send_) of the vfs_nspace subsystem (subsystem id 867800), called by the kernel VFS to upcall the user-space namespace resolver on the registered nspace handler port. Asks the resolver to handle the namespace event for path on behalf of process pid; the resolver's errno-style result is returned through handler_error.

functionsend_nspace_resolve_cancel

extern kern_return_t send_nspace_resolve_cancel(
	mach_port_t nspace_handler_port,
	uint32_t req_id
)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/mach/vfs_nspace.defs, bsd/vfs/vfs_syscalls.c
MIG user-side stub (UserPrefix send_) of the vfs_nspace subsystem (subsystem id 867800), called by the kernel VFS to upcall the user-space namespace resolver on the registered nspace handler port. Notifies the resolver that the outstanding resolve request identified by req_id has been canceled (e.g. the waiting process was interrupted). One-way with respect to resolution: no result is returned beyond the send status.

functionsend_nspace_resolve_path

extern kern_return_t send_nspace_resolve_path(
	mach_port_t nspace_handler_port,
	uint32_t req_id,
	uint32_t pid,
	uint32_t op,
	nspace_path_t path,
	int *resolve_error
)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/mach/vfs_nspace.defs, bsd/vfs/vfs_syscalls.c
MIG user-side stub (UserPrefix send_) of the vfs_nspace subsystem (subsystem id 867800), called by the kernel VFS to upcall the user-space namespace resolver on the registered nspace handler port. Requests resolution of path for process pid with operation op under request id req_id; the resolver's errno-style result is returned through resolve_error. The .defs notes this routine must keep its position to preserve MIG message ids.

functionsend_vfs_resolve_file

extern kern_return_t send_vfs_resolve_file(
	mach_port_t nspace_handler_port,
	uint32_t req_id,
	uint32_t pid,
	uint32_t op,
	int64_t offset,
	int64_t size,
	nspace_path_t path
)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/mach/vfs_nspace.defs, bsd/vfs/vfs_syscalls.c
MIG user-side stub (UserPrefix send_) of the vfs_nspace subsystem (subsystem id 867800), called by the kernel VFS to upcall the user-space namespace resolver on the registered nspace handler port. Requests materialization/resolution of the dataless file at path for process pid, with operation op and the offset and size of the access that faulted. Deprecated in favor of send_vfs_resolve_file_with_audit_token.

functionsend_vfs_resolve_dir

extern kern_return_t send_vfs_resolve_dir(
	mach_port_t nspace_handler_port,
	uint32_t req_id,
	uint32_t pid,
	uint32_t op,
	nspace_name_t file_name,
	nspace_path_t path
)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/mach/vfs_nspace.defs, bsd/vfs/vfs_syscalls.c
MIG user-side stub (UserPrefix send_) of the vfs_nspace subsystem (subsystem id 867800), called by the kernel VFS to upcall the user-space namespace resolver on the registered nspace handler port. Requests resolution of directory entry file_name within the dataless directory at path for process pid with operation op. Deprecated in favor of send_vfs_resolve_dir_with_audit_token.

functionsend_vfs_resolve_file_with_audit_token

extern kern_return_t send_vfs_resolve_file_with_audit_token(
	mach_port_t nspace_handler_port,
	uint32_t req_id,
	uint32_t op,
	int64_t offset,
	int64_t size,
	nspace_path_t path,
	audit_token_t req_atoken
)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/mach/vfs_nspace.defs, bsd/vfs/vfs_syscalls.c
MIG user-side stub (UserPrefix send_) of the vfs_nspace subsystem (subsystem id 867800), called by the kernel VFS to upcall the user-space namespace resolver on the registered nspace handler port. Requests materialization/resolution of the dataless file at path with operation op and the offset and size of the faulting access; the requesting process is identified by its audit token (req_atoken) rather than a pid.

functionsend_vfs_resolve_dir_with_audit_token

extern kern_return_t send_vfs_resolve_dir_with_audit_token(
	mach_port_t nspace_handler_port,
	uint32_t req_id,
	uint32_t op,
	nspace_name_t file_name,
	nspace_path_t path,
	audit_token_t req_atoken
)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/mach/vfs_nspace.defs, bsd/vfs/vfs_syscalls.c
MIG user-side stub (UserPrefix send_) of the vfs_nspace subsystem (subsystem id 867800), called by the kernel VFS to upcall the user-space namespace resolver on the registered nspace handler port. Requests resolution of directory entry file_name within the dataless directory at path with operation op; the requesting process is identified by its audit token (req_atoken) rather than a pid.

functionsend_vfs_resolve_reparent_with_audit_token

extern kern_return_t send_vfs_resolve_reparent_with_audit_token(
	mach_port_t nspace_handler_port,
	uint32_t req_id,
	uint32_t op,
	nspace_path_t path,
	nspace_path_t dest_path,
	audit_token_t req_atoken
)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/mach/vfs_nspace.defs, bsd/vfs/vfs_syscalls.c
MIG user-side stub (UserPrefix send_) of the vfs_nspace subsystem (subsystem id 867800), called by the kernel VFS to upcall the user-space namespace resolver on the registered nspace handler port. Requests resolution for a reparent (rename across a dataless boundary) of path to dest_path with operation op; the requesting process is identified by its audit token (req_atoken).

macrosubsystem_to_name_map_vfs_nspace

#define subsystem_to_name_map_vfs_nspace { "nspace_handle", 867800 },
    { "nspace_resolve_cancel", 867801 },
    { "nspace_resolve_path", 867802 },
    { "vfs_resolve_file", 867803 },
    { "vfs_resolve_dir", 867804 },
    { "vfs_resolve_file_with_audit_token", 867805 },
    { "vfs_resolve_dir_with_audit_token", 867806 },
    { "vfs_resolve_reparent_with_audit_token", 867807 }