Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lockevents_program_min_delta - Set clock event device to the minimum delay.*@dev: device to program* Returns 0 on success, -ETIME when the retry loop failed.

Proto:static int clockevents_program_min_delta(struct clock_event_device *dev)

Type:int

Parameter:

TypeParameterName
struct clock_event_device *dev
275  delta = 0
278  When i < 10 cycle
279  delta += min_delta_ns
280  next_event = Add a ktime_t variable and a scalar nanosecond value.* res = kt + nsval:(ktime_get(), delta)
282  If clockevent_state_shutdown(dev) Then Return 0
285  retries++
286  clc = delta * mult >> shift
287  If set_next_event((unsignedlong)clc, dev) == 0 Then Return 0
290  Return -ETIME
Caller
NameDescribe
clockevents_program_eventlockevents_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.