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:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:k_switch_to_oneshot - switch to oneshot mode

Proto:int tick_switch_to_oneshot(void (*handler)(struct clock_event_device *))

Type:int

Parameter:

TypeParameterName
void (*handler
75  td = this_cpu_ptr( & Tick devices)
76  dev = evtdev
78  If Not dev || Not (features & CLOCK_EVT_FEAT_ONESHOT) || Not tick_device_is_functional(dev) Then
81  pr_info("Clockevents: could not switch to one-shot mode:")
82  If Not dev Then
84  Else
91  Return -EINVAL
94  mode = TICKDEV_MODE_ONESHOT
95  event_handler = handler
96  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 !
97  Functions related to oneshot broadcasting
98  Return 0