RE: [PATCH] provide hrtimer exports for module use [Was: Exportsfor hrtimer APIs]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thomas Gleixner wrote:
> What means "more for defining intervals" ? Which intervals  (period in
> ms)? What are the timers used for ?

The user can write a block of code that they would like to be executed
repeatedly in fixed intervals.  A trivial example might look like this:
    probe timer.ms(10) { flush_data(); }

This would flush the data every 10ms.

A example of polling might be:
    probe timer.ms(1) { log(scheduler_queue_length()); }

I hope this answers your questions...


Josh
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux