Tuesday, February 22, 2022

[SOLVED] what does "active" mean to linux timer?

Issue

When I use add_timer&del_timer on linux kernel developing, the words "active", "inactive" and "deactivate" are often shown in function usage explanation. What does "active" mean ?

Does it mean: The time of which the value is assigned to timer_list->expires is reached, so the timer is active. Or does it mean that the timer is active immediately after add_timer or mod_timer is returned.


Solution

An inactive timer won't fire. You can activate it with mod_timer. Deactivating is possible with del_timer.



Answered By - a3f
Answer Checked By - Timothy Miller (WPSolving Admin)