Why do we have to specify hrtimer_mode twice using hrtimers

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

 



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.

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

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux