#include <mach/sysdiagnose_notification_server.h>

mach/sysdiagnose_notification_server.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
4 functions · 3 macros · 1 struct · 1 variable

macro_sysdiagnose_notification_server_

#define _sysdiagnose_notification_server_ 

macrosysdiagnose_notification_MSG_COUNT

#define sysdiagnose_notification_MSG_COUNT 2

functionreceive_sysdiagnose_notification

extern MIG_SERVER_ROUTINE kern_return_t receive_sysdiagnose_notification(
	mach_port_t sysdiagnose_port,
	uint32_t flags
)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/mach/sysdiagnose_notification.defs, osfmk/kern/sysdiagnose.c
Server-interface routine (ServerPrefix receive_) of the sysdiagnose_notification MIG subsystem (subsystem id 31337), implemented by the sysdiagnose daemon. The kernel sends the notification on the host sysdiagnose port when a sysdiagnose is triggered (e.g. by the diagnostic key chord); flags carries the triggering keycode. Superseded in the kernel's sender by the _with_audit_token variant (osfmk/kern/sysdiagnose.c).

functionreceive_sysdiagnose_notification_with_audit_token

extern MIG_SERVER_ROUTINE kern_return_t receive_sysdiagnose_notification_with_audit_token(
	mach_port_t sysdiagnose_port,
	uint32_t flags,
	audit_token_t atoken
)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/mach/sysdiagnose_notification.defs, osfmk/kern/sysdiagnose.c
Server-interface routine of the sysdiagnose_notification MIG subsystem, implemented by the sysdiagnose daemon. Variant of receive_sysdiagnose_notification whose message carries the sender's audit token, letting the daemon verify the notification came from the kernel. Sent by sysdiagnose_notify_user (osfmk/kern/sysdiagnose.c) with the triggering keycode in flags.

functionsysdiagnose_notification_server

extern boolean_t sysdiagnose_notification_server(
	mach_msg_header_t *InHeadP,
	mach_msg_header_t *OutHeadP
)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/mach/sysdiagnose_notification.defs
MIG-generated demultiplexer for the sysdiagnose_notification subsystem (osfmk/mach/sysdiagnose_notification.defs). If the request message at InHeadP belongs to the subsystem, calls the matching handler (receive_sysdiagnose_notification, receive_sysdiagnose_notification_with_audit_token), formats the reply message at OutHeadP, and returns TRUE; returns FALSE, with a MIG_BAD_ID error reply, for messages that do not belong to the subsystem.

functionsysdiagnose_notification_server_routine

extern mig_routine_t sysdiagnose_notification_server_routine(mach_msg_header_t *InHeadP)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/mach/sysdiagnose_notification.defs
Returns the MIG dispatch function for the sysdiagnose_notification subsystem request whose msgh_id is found in InHeadP, or a null pointer if the message is not a request of the subsystem. Alternative to the combined demultiplexer for servers that look up and invoke the handler themselves.

structreceive_sysdiagnose_notification_subsystem

Description of this subsystem, for use in direct RPC
size 112, align 8
mig_server_routine_tserverServer routine
mach_msg_id_tstartMin routine number
mach_msg_id_tendMax routine number + 1
unsigned intmaxsizeMax msg size
vm_address_treservedReserved
struct routine_descriptor[2]routine

variablereceive_sysdiagnose_notification_subsystem

extern const struct receive_sysdiagnose_notification_subsystem { mig_server_routine_t server; /* Server routine */ mach_msg_id_t start; /* Min routine number */ mach_msg_id_t end; /* Max routine number + 1 */ unsigned int maxsize; /* Max msg size */ vm_address_t reserved; /* Reserved */ struct routine_descriptor /* Array of routine descriptors */ routine[2]; } receive_sysdiagnose_notification_subsystem

macrosubsystem_to_name_map_sysdiagnose_notification

#define subsystem_to_name_map_sysdiagnose_notification { "sysdiagnose_notification", 31337 },
    { "sysdiagnose_notification_with_audit_token", 31338 }