#include <mach/clock_reply_server.h>
mach/clock_reply_server.h
macro_clock_reply_server_
#define _clock_reply_server_
functionclock_alarm_reply
extern MIG_SERVER_ROUTINE kern_return_t clock_alarm_reply( clock_reply_t alarm_port, kern_return_t alarm_code, alarm_type_t alarm_type, mach_timespec_t alarm_time )
Matches up with old value
Reply routine for clock_alarm.
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Ring a preset alarm.
A clock_alarm_reply function is called as the result of a message from the kernel indicating that a previously requested alarm time (clock_alarm) has arrived.
functionclock_reply_server
extern boolean_t clock_reply_server( mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP )
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Handle kernel-generated alarm.
The clock_reply_server function is the MIG generated server handling function to handle messages from the kernel corresponding to clock alarms. Such messages are delivered to the alarm reply port named in a clock_alarm call. The clock_reply_server function performs all necessary argument handling for this kernel message and calls the appropriate handling function. These functions must be supplied by the caller.
| TRUE | The message was handled and the appropriate function was called. |
| FALSE | The message did not apply to the alarm mechanism and no other action was taken. |
functionclock_reply_server_routine
extern mig_routine_t clock_reply_server_routine(mach_msg_header_t *InHeadP)
▾
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/mach/clock_reply.defs
Returns the MIG dispatch function for the clock_reply 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.
structclock_reply_subsystem
Description of this subsystem, for use in direct RPC
| 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[1] | routine |
variableclock_reply_subsystem
extern const struct clock_reply_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[1]; } clock_reply_subsystem