函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:k_switch_to_oneshot - switch to oneshot mode

函数原型:int tick_switch_to_oneshot(void (*handler)(struct clock_event_device *))

返回类型:int

参数:

类型参数名称
void (*handler
75  td等于this_cpu_ptr( & Tick devices)
76  dev等于evtdev
78  如果非dev或非features按位与CLOCK_EVT_FEAT_ONESHOT的值或非tick_device_is_functional(dev)则
81  打印信息("Clockevents: could not switch to one-shot mode:")
82  如果非dev
83  打印标准信息(" no tick device\n")
84  否则
85  如果非tick_device_is_functional(dev)则打印标准信息(" %s is not functional.\n", name)
87  否则打印标准信息(" %s does not support one-shot mode.\n", name)
91  返回:负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  返回:0