Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\tick-oneshot.c Create Date:2022-07-28 10:51:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:k_program_event

Proto:int tick_program_event(ktime_t expires, int force)

Type:int

Parameter:

TypeParameterName
ktime_texpires
intforce
25  dev = Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(evtdev)
27  If Value for the false possibility is greater at compile time(expires == KTIME_MAX) Then
31  lockevents_switch_state - set the operating state of a clock event device*@dev: device to modify*@state: new state* Must be called with interrupts disabled !
32  next_event = KTIME_MAX
33  Return 0
36  If Value for the false possibility is greater at compile time(clockevent_state_oneshot_stopped(dev)) Then
41  lockevents_switch_state - set the operating state of a clock event device*@dev: device to modify*@state: new state* Must be called with interrupts disabled !
44  Return lockevents_program_event - Reprogram the clock event device.*@dev: device to program*@expires: absolute expiry time (monotonic clock)*@force: program minimum delay if expires can not be set* Returns 0 on success, -ETIME when the event is in the past.
Caller
NameDescribe
hrtimer_reprogramWhen a timer is enqueued and expires earlier than the already enqueued* timers, we have to check, whether it expires earlier than the timer for* which the clock event device was armed.* Called with interrupts disabled and base->cpu_base.lock held