Changeset 80bcaed in mainline for kernel/generic/include/time
- Timestamp:
- 2007-02-03T13:22:24Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f619ec11
- Parents:
- fa8e7d2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/time/timeout.h
rfa8e7d2 r80bcaed 45 45 SPINLOCK_DECLARE(lock); 46 46 47 link_t link; /**< Link to the list of active timeouts on THE->cpu */ 48 49 uint64_t ticks; /**< Timeout will be activated in this amount of clock() ticks. */ 50 51 timeout_handler_t handler; /**< Function that will be called on timeout activation. */ 52 void *arg; /**< Argument to be passed to handler() function. */ 53 54 cpu_t *cpu; /**< On which processor is this timeout registered. */ 47 /** Link to the list of active timeouts on THE->cpu */ 48 link_t link; 49 /** Timeout will be activated in this amount of clock() ticks. */ 50 uint64_t ticks; 51 /** Function that will be called on timeout activation. */ 52 timeout_handler_t handler; 53 /** Argument to be passed to handler() function. */ 54 void *arg; 55 /** On which processor is this timeout registered. */ 56 cpu_t *cpu; 55 57 } timeout_t; 56 58 … … 60 62 extern void timeout_initialize(timeout_t *t); 61 63 extern void timeout_reinitialize(timeout_t *t); 62 extern void timeout_register(timeout_t *t, uint64_t usec, timeout_handler_t f, void *arg); 64 extern void timeout_register(timeout_t *t, uint64_t usec, timeout_handler_t f, 65 void *arg); 63 66 extern bool timeout_unregister(timeout_t *t); 64 67
Note:
See TracChangeset
for help on using the changeset viewer.