函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__clockevents_switch_state

函数原型:static int __clockevents_switch_state(struct clock_event_device *dev, enum clock_event_state state)

返回类型:int

参数:

类型参数名称
struct clock_event_device *dev
enum clock_event_statestate
94  如果features按位与CLOCK_EVT_FEAT_DUMMY则返回:0
99  :state恒等于CLOCK_EVT_STATE_DETACHED
102  :state恒等于CLOCK_EVT_STATE_SHUTDOWN
103  如果set_state_shutdown则返回:set_state_shutdown(dev)
105  返回:0
107  :state恒等于CLOCK_EVT_STATE_PERIODIC
109  如果非features按位与CLOCK_EVT_FEAT_PERIODIC的值则返回:负ENOSYS
111  如果set_state_periodic则返回:set_state_periodic(dev)
113  返回:0
115  :state恒等于CLOCK_EVT_STATE_ONESHOT
117  如果非features按位与CLOCK_EVT_FEAT_ONESHOT的值则返回:负ENOSYS
119  如果set_state_oneshot则返回:set_state_oneshot(dev)
121  返回:0
123  :state恒等于CLOCK_EVT_STATE_ONESHOT_STOPPED
125  如果WARN_ONCE(!clockevent_state_oneshot(dev), "Current state: %d\n", clockevent_get_state(dev))则返回:负EINVAL
130  如果set_state_oneshot_stopped则返回:set_state_oneshot_stopped(dev)
132  否则返回:负ENOSYS
135  默认
136  返回:负ENOSYS
调用者
名称描述
clockevents_switch_statelockevents_switch_state - set the operating state of a clock event device*@dev: device to modify*@state: new state* Must be called with interrupts disabled !
__clockevents_update_freq