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]

Reply via email to