#include <mach/ktrace_background.h>

mach/ktrace_background.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
3 macros · 1 function

macro_ktrace_background_user_

#define _ktrace_background_user_ 

macroktrace_background_MSG_COUNT

#define ktrace_background_MSG_COUNT 1

functionsend_ktrace_background_available

extern kern_return_t send_ktrace_background_available(mach_port_t ktrace_background_port)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/mach/ktrace_background.defs, osfmk/kern/ktrace_background_notify.c
MIG user-side stub (UserPrefix send_) of the ktrace_background subsystem (subsystem id 670). The kernel calls it (osfmk/kern/ktrace_background_notify.c) to send a one-way message on the registered ktrace background port, notifying the tracing daemon that background kernel tracing has become available. Returns the result of the message send. The receiving daemon implements the receive_ktrace_background_available counterpart.

macrosubsystem_to_name_map_ktrace_background

#define subsystem_to_name_map_ktrace_background { "ktrace_background_available", 670 }