Function report |
Source Code:kernel\time\posix-timers.c |
Create Date:2022-07-28 10:46:19 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:This function gets called when a POSIX.1b interval timer expires. It* is used as a callback from the kernel internal timer. The* run_timer_list code ALWAYS calls with interrupts on.* This code is for CLOCK_REALTIME* and CLOCK_MONOTONIC* timers.
Proto:static enum hrtimer_restart posix_timer_fn(struct hrtimer *timer)
Type:enum hrtimer_restart
Parameter:
Type | Parameter | Name |
---|---|---|
struct hrtimer * | timer |
344 | si_private = 0 |
345 | ret = Timer is not restarted |
348 | spin_lock_irqsave( & it_lock, flags) |
350 | it_active = 0 |
351 | If it_interval != 0 Then si_private = ++it_requeue_pending |
354 | If posix_timer_event(timr, si_private) Then |
360 | If it_interval != 0 Then |
361 | now = hrtimer_cb_get_time(timer) |
395 | ret = Timer must be restarted |
396 | ++it_requeue_pending |
397 | it_active = 1 |
401 | unlock_timer(timr, flags) |
402 | Return ret |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |