Subversion Repositories HelenOS-doc

Compare Revisions

Ignore whitespace Rev 126 → Rev 127

/design/trunk/src/ch_time.xml
84,7 → 84,7
<para>Kernel subsystems can register a callback function to be executed
with a specified delay. Such a registration is represented by a kernel
structure called <classname>timeout</classname>. Timeouts are registered
via <code>timeout_register</code> function. This function takes a pointer
via <code>timeout_register()</code> function. This function takes a pointer
to a timeout structure, a callback function, a parameter of the callback
function and a delay in microseconds as parameters. After the structure is
initialized with all these values, it is sorted into the processor's list
91,8 → 91,8
of active timeouts, according to the number of clock interrupts remaining
to their expiration and relatively to already listed timeouts.</para>
 
<para>Timeouts can be unregistered via <code>timeout_unregister</code>.
This function can, as opposed to <code>timeout_register</code>, fail when
<para>Timeouts can be unregistered via <code>timeout_unregister()</code>.
This function can, as opposed to <code>timeout_register()</code>, fail when
it is too late to remove the timeout from the list of active
timeouts.</para>
 
111,7 → 111,7
 
<para>On each clock interrupt, the architecture specific part of the clock
interrupt handler makes a call to the generic clock interrupt handler
implemented by the <code>clock</code> function. The generic handler takes
implemented by the <code>clock()</code> function. The generic handler takes
care of several mission critical goals:</para>
 
<itemizedlist>
128,7 → 128,7
</listitem>
</itemizedlist>
 
<para>The <code>clock</code> function checks for expired timeouts and
<para>The <code>clock()</code> function checks for expired timeouts and
decrements unexpired timeout expiration counters exactly one more times
than is the number of missed clock signals (i.e. at least once and
possibly more times, depending on the missed clock signals counter). The