函数逻辑报告 |
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 |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:__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_state | state |
| 94 | 如果features按位与CLOCK_EVT_FEAT_DUMMY则返回:0 |
| 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 |
| 125 | 如果WARN_ONCE(!clockevent_state_oneshot(dev), "Current state: %d\n", clockevent_get_state(dev))则返回:负EINVAL |
| 132 | 否则返回:负ENOSYS |
| 135 | 默认 |
| 136 | 返回:负ENOSYS |
| 名称 | 描述 |
|---|---|
| clockevents_switch_state | 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 ! |
| __clockevents_update_freq |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |