timer_setup
时间: 2023-10-10 14:14:14 浏览: 211
timer_setup函数是Linux内核中的一个函数,用于初始化一个定时器对象。在给定的定时器对象中,它设置了定时器的到期时间和回调函数。在上述引用的代码中,timer_setup(&timer, timer_interrupt, 0)将定时器对象timer进行初始化,设定了定时器的到期时间为jiffies HZ并指定了回调函数为timer_interrupt。这样定时器就会在到期时调用回调函数来进行相应的操作。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [linux调度子系统6 - 周期调度 timer setup](https://blog.csdn.net/m0_37132481/article/details/121012256)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Linux内核定时器](https://blog.csdn.net/cyhhh/article/details/126778268)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文