Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Question about `timer base'

4 views
Skip to first unread message

Lee David

unread,
Nov 25, 2006, 12:14:39 PM11/25/06
to
Hi, all

When I reading the Cascading Timer Wheel code, I found there is a
`base' field and so does in hrtimers.

struct timer_list {
struct list_head entry;
unsigned long expires;
void (*function)(unsigned long);
unsigned long data;
struct timer_base_s *base; /* timer base (1) */
};

struct hrtimer {
struct rb_node node;
ktime_t expires;
enum hrtimer_state state;
int (*function)(void *);
void *data;
struct hrtimer_base *base; /* timer base (2) */
};

Can somebody pls tell me what does 'timer base' exact mean?
And what purpose does the two `base' field above used for?

Thanks in advance,
D.L.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/


0 new messages