Lines Matching defs:clock
34 * alarm clock facility.
44 #include <kern/clock.h>
52 * Initialize ipc control of a clock.
56 clock_t clock)
63 clock->cl_service = port;
68 clock->cl_control = port;
74 * Enable ipc access to a clock.
78 clock_t clock)
80 ipc_kobject_set(clock->cl_service,
81 (ipc_kobject_t) clock, IKOT_CLOCK);
82 ipc_kobject_set(clock->cl_control,
83 (ipc_kobject_t) clock, IKOT_CLOCK_CTRL);
89 * Convert from a port to a clock.
90 * Doesn't consume the port ref; produces a clock ref,
99 clock_t clock = CLOCK_NULL;
106 clock = (clock_t) port->ip_kobject;
110 return (clock);
116 * Convert from a port to a clock.
117 * Doesn't consume the port ref; produces a clock ref,
126 clock_t clock = CLOCK_NULL;
132 clock = (clock_t) port->ip_kobject;
136 return (clock);
142 * Convert from a clock to a port.
149 clock_t clock)
153 port = ipc_port_make_send(clock->cl_service);
160 * Convert from a clock to a port.
167 clock_t clock)
171 port = ipc_port_make_send(clock->cl_control);
178 * Convert from a clock name to a clock pointer.
184 clock_t clock = CLOCK_NULL;
189 return (clock);
192 return (clock);
194 clock = (clock_t) port->ip_kobject;
196 return (clock);