#include <mach/memory_error_notification_server.h>

mach/memory_error_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, kern/ecc.h, kern/llc_error.h
5 functions · 3 macros · 1 struct · 1 variable

macro_memory_error_notification_server_

#define _memory_error_notification_server_ 

macromemory_error_notification_MSG_COUNT

#define memory_error_notification_MSG_COUNT 3

functionmemory_error_notification

extern MIG_SERVER_ROUTINE kern_return_t memory_error_notification(
	mach_port_t memory_error_port,
	ecc_event_t event,
	audit_token_t atoken /* serveraudittoken */
)
MIG routine from mach/memory_error_notification.defs · simpleroutine
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/mach/memory_error_notification.defs, osfmk/kern/ecc_logging.c
Server-interface routine of the memory_error_notification MIG subsystem (subsystem id 5900), implemented by a user-space memory-error daemon. The kernel's ECC logging facility (osfmk/kern/ecc_logging.c) sends this one-way message on the registered memory-error port when an ECC memory error event (ecc_event_t) is recorded; atoken carries the sender's audit token.

functionmcc_memory_error_notification

extern MIG_SERVER_ROUTINE kern_return_t mcc_memory_error_notification(
	mach_port_t memory_error_port,
	mcc_ecc_event_t event,
	audit_token_t atoken /* serveraudittoken */
)
MIG routine from mach/memory_error_notification.defs · simpleroutine
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/mach/memory_error_notification.defs, osfmk/kern/ecc_logging.c
Server-interface routine of the memory_error_notification MIG subsystem, implemented by a user-space memory-error daemon. Like memory_error_notification, but delivers an MCC ECC error event (mcc_ecc_event_t), queued and sent by the kernel's MCC memory-error event queue in osfmk/kern/ecc_logging.c; atoken carries the sender's audit token.

functionllc_memory_error_notification

extern MIG_SERVER_ROUTINE kern_return_t llc_memory_error_notification(
	mach_port_t memory_error_port,
	llc_event_t event,
	audit_token_t atoken /* serveraudittoken */
)
MIG routine from mach/memory_error_notification.defs · simpleroutine
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/mach/memory_error_notification.defs
Server-interface routine of the memory_error_notification MIG subsystem, implemented by a user-space memory-error daemon. Analogous to memory_error_notification and mcc_memory_error_notification, delivering an LLC memory error event (llc_event_t) on the registered memory-error port; atoken carries the sender's audit token. Not present in the available xnu source.

functionmemory_error_notification_server

extern boolean_t memory_error_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/memory_error_notification.defs
MIG-generated demultiplexer for the memory_error_notification subsystem (osfmk/mach/memory_error_notification.defs). If the request message at InHeadP belongs to the subsystem, calls the matching handler (memory_error_notification, mcc_memory_error_notification, llc_memory_error_notification), 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.

functionmemory_error_notification_server_routine

extern mig_routine_t memory_error_notification_server_routine(mach_msg_header_t *InHeadP)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/mach/memory_error_notification.defs
Returns the MIG dispatch function for the memory_error_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.

structmemory_error_notification_subsystem

Description of this subsystem, for use in direct RPC
size 152, 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[3]routine

variablememory_error_notification_subsystem

extern const struct memory_error_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[3]; } memory_error_notification_subsystem

macrosubsystem_to_name_map_memory_error_notification

#define subsystem_to_name_map_memory_error_notification { "memory_error_notification", 5900 },
    { "mcc_memory_error_notification", 5901 },
    { "llc_memory_error_notification", 5902 }