One other difference with cyclics is that the timing granularity can be much shorter than a clock tick. So, when are cyclics going to be added to the DDI?

max
Garrett D'Amore wrote:
wendy wrote:
Hello,

I saw some drivers use cyclic_add instead of timeout to initialize a timer. What is the difference between? Which is better?

cyclics are not part of the DDI. You should not use them in unbundled code. (FWIW, I think the _bundled_ drivers use cyclics a bit abusively as well.)

A cyclic runs periodically, it never needs to be rescheduled.

A timeout only runs once.

   -- Garrett

_______________________________________________
networking-discuss mailing list
[email protected]


_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to