Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\posix-cpu-timers.c Create Date:2022-07-28 10:47:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:The timer is locked, fire it and arrange for its reload.

Proto:static void cpu_timer_fire(struct k_itimer *timer)

Type:void

Parameter:

TypeParameterName
struct k_itimer *timer
523  ctmr = cpu
525  If (it_sigev_notify & ~deliver to thread ) == her notification: meaningless Then
529  cpu_timer_setexpires(ctmr, 0)
530  Else if Value for the false possibility is greater at compile time(sigq == NULL) Then
535  wake_up_process - Wake up a specific process*@p: The process to be woken up.* Attempt to wake up the nominated process and move it to the set of runnable* processes.* Return: 1 if the process was woken up, 0 if it was already running.
536  cpu_timer_setexpires(ctmr, 0)
537  Else if Not it_interval Then
541  posix_timer_event(timer, 0)
542  cpu_timer_setexpires(ctmr, 0)
543  Else if posix_timer_event(timer, ++it_requeue_pending) Then
550  posix_cpu_timer_rearm(timer)
551  ++it_requeue_pending
Caller
NameDescribe
posix_cpu_timer_setGuts of sys_timer_settime for CPU timers.* This is called with the timer locked and interrupts disabled.* If we return TIMER_RETRY, it's necessary to release the timer's lock* and try again. (This happens when the timer is in the middle of firing.)
run_posix_cpu_timersThis is called from the timer interrupt handler. The irq handler has* already updated our counts. We need to check if any timers fire now.* Interrupts are disabled.