kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Why do we have to specify hrtimer_mode twice using hrtimers
@ 2020-02-13  4:23 Linux Weekend Learning
  0 siblings, 0 replies; only message in thread
From: Linux Weekend Learning @ 2020-02-13  4:23 UTC (permalink / raw)
  To: Kernel Newbies


[-- Attachment #1.1: Type: text/plain, Size: 392 bytes --]

Hi All,

Why do we need to specify hrtimer_mode twice while using hrtimers.

   1.

   Timer Initialization:

   void hrtimer_init(struct hrtimer *timer, clockid_t which_clock, enum
   hrtimer_mode mode);
   2.

   Starting a timer:

   void hrtimer_start(struct hrtimer *timer, ktime_t tim, const enum
   hrtimer_mode mode);

What will happen if i specify different modes in both functions.

[-- Attachment #1.2: Type: text/html, Size: 2715 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-13  9:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-13  4:23 Why do we have to specify hrtimer_mode twice using hrtimers Linux Weekend Learning

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).