Changeset 70527f1 in mainline for src/time/timeout.c
- Timestamp:
- 2005-06-03T14:51:05Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 673104e
- Parents:
- ac5d02b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/time/timeout.c
rac5d02b r70527f1 39 39 #include <arch.h> 40 40 41 42 /** Initialize timeouts 43 * 44 * Initialize kernel timeouts. 45 * 46 */ 41 47 void timeout_init(void) 42 48 { … … 46 52 47 53 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 */ 48 61 void timeout_reinitialize(timeout_t *t) 49 62 { … … 55 68 } 56 69 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 */ 57 78 void timeout_initialize(timeout_t *t) 58 79 { … … 61 82 } 62 83 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 * 65 97 */ 66 98 void timeout_register(timeout_t *t, __u64 time, timeout_handler f, void *arg) … … 122 154 } 123 155 156 157 /** Unregister timeout callback 158 * 159 * Remove timeout from timeout list. 160 * 161 * @param t Timeout to unregister. 162 * 163 */ 124 164 int timeout_unregister(timeout_t *t) 125 165 {
Note:
See TracChangeset
for help on using the changeset viewer.