函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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 !

函数原型:void clockevents_switch_state(struct clock_event_device *dev, enum clock_event_state state)

返回类型:void

参数:

类型参数名称
struct clock_event_device *dev
enum clock_event_statestate
150  如果clockevent_get_state(dev)不等于state
151  如果__clockevents_switch_state(dev, state)则返回
154  clockevent_set_state(dev, state)
160  如果clockevent_state_oneshot(dev)则
161  如果WARN_ON(!mult)则mult等于1
调用者
名称描述
clockevents_shutdownlockevents_shutdown - shutdown the device and clear next_event*@dev: device to shutdown
clockevents_exchange_devicelockevents_exchange_device - release and request clock devices*@old: device to release (can be NULL)*@new: device to request (can be NULL)* Called from various tick functions with clockevents_lock held and* interrupts disabled.
tick_setup_periodicSetup the device for a periodic tick
tick_program_eventk_program_event
tick_resume_oneshotk_resume_onshot - resume oneshot mode
tick_setup_oneshotk_setup_oneshot - setup the event device for oneshot mode (hres or nohz)
tick_switch_to_oneshotk_switch_to_oneshot - switch to oneshot mode