Changeset 70527f1 in mainline for src/time/timeout.c


Ignore:
Timestamp:
2005-06-03T14:51:05Z (20 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
673104e
Parents:
ac5d02b
Message:

doxygen-style comments
cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/time/timeout.c

    rac5d02b r70527f1  
    3939#include <arch.h>
    4040
     41
     42/** Initialize timeouts
     43 *
     44 * Initialize kernel timeouts.
     45 *
     46 */
    4147void timeout_init(void)
    4248{
     
    4652
    4753
     54/** Initialize empty timeout list
     55 *
     56 * Initialize the timeout list to be empty.
     57 *
     58 * @param t Timeout list to be initialized.
     59 *
     60 */
    4861void timeout_reinitialize(timeout_t *t)
    4962{
     
    5568}
    5669
     70
     71/** Initialize timeout list
     72 *
     73 * Initialize the timeout list and its spinlock.
     74 *
     75 * @param t Timeout list to be initialized.
     76 *
     77 */
    5778void timeout_initialize(timeout_t *t)
    5879{
     
    6182}
    6283
    63 /*
    64  * This function registers f for execution in about time microseconds.
     84
     85/** Register timeout callback
     86 *
     87 * Insert the timeout handler f (with argument arg)
     88 * to the timeout list and make it execute in
     89 * time microseconds (or slightly more).
     90 *
     91 * @param t    Timeout list.
     92 * @patam time Number of usec in the future to execute
     93 *             the handler.
     94 * @param f    Timeout handler function.
     95 * @param arg  Timeout handler argument.
     96 *
    6597 */
    6698void timeout_register(timeout_t *t, __u64 time, timeout_handler f, void *arg)
     
    122154}
    123155
     156
     157/** Unregister timeout callback
     158 *
     159 * Remove timeout from timeout list.
     160 *
     161 * @param t Timeout to unregister.
     162 *
     163 */
    124164int timeout_unregister(timeout_t *t)
    125165{
Note: See TracChangeset for help on using the changeset viewer.