Changeset ba1b2194 in mainline for include/time/timeout.h


Ignore:
Timestamp:
2005-10-16T19:49:15Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
75eacab
Parents:
9cefba4
Message:

Doxygen comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/time/timeout.h

    r9cefba4 rba1b2194  
    3737#define us2ticks(us)    ((__u64)(((__u32) (us)/(1000000/HZ))))
    3838
    39 typedef void (* timeout_handler)(void *arg);
     39typedef void (* timeout_handler_t)(void *arg);
    4040
    4141struct timeout {
    4242        spinlock_t lock;
    4343
    44         link_t link;
     44        link_t link;                    /**< Link to the list of active timeouts on THE->cpu */
    4545       
    46         __u64 ticks;
     46        __u64 ticks;                    /**< Timeout will be activated in this amount of clock() ticks. */
    4747
    48         timeout_handler handler;
    49         void *arg;
     48        timeout_handler_t handler;      /**< Function that will be called on timeout activation. */
     49        void *arg;                      /**< Argument to be passed to handler() function. */
    5050       
    51         cpu_t *cpu;
     51        cpu_t *cpu;                     /**< On which processor is this timeout registered. */
    5252};
    5353
     
    5555extern void timeout_initialize(timeout_t *t);
    5656extern void timeout_reinitialize(timeout_t *t);
    57 extern void timeout_register(timeout_t *t, __u64 usec, timeout_handler f, void *arg);
    58 extern int timeout_unregister(timeout_t *t);
     57extern void timeout_register(timeout_t *t, __u64 usec, timeout_handler_t f, void *arg);
     58extern bool timeout_unregister(timeout_t *t);
    5959
    6060#endif
Note: See TracChangeset for help on using the changeset viewer.