函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\posix-cpu-timers.c Create Date:2022-07-27 11:47:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Insert the timer on the appropriate list before any timers that* expire later. This must be called with the sighand lock held.

函数原型:static void arm_timer(struct k_itimer *timer)

返回类型:void

参数:

类型参数名称
struct k_itimer *timer
489  clkidx等于CPUCLOCK_WHICH(it_clock)
490  ctmr等于cpu
491  newexp等于cpu_timer_getexpires(ctmr)
492  p等于task
495  如果CPUCLOCK_PERTHREAD(it_clock)则base等于basesclkidx
497  否则base等于basesclkidx
500  如果非cpu_timer_enqueue( & tqhead, ctmr)则返回
509  如果newexp小于nextevtnextevt等于newexp
512  如果CPUCLOCK_PERTHREAD(it_clock)则tick_dep_set_task(p, TICK_DEP_BIT_POSIX_TIMER)
514  否则tick_dep_set_signal(信号, TICK_DEP_BIT_POSIX_TIMER)
调用者
名称描述
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.)
posix_cpu_timer_rearm