函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Check, if the new registered device should be used. Called with* clockevents_lock held and interrupts disabled.

函数原型:void tick_check_new_device(struct clock_event_device *newdev)

返回类型:void

参数:

类型参数名称
struct clock_event_device *newdev
344  cpu等于当前cpu ID()
345  td等于per_cpu(Tick devices, cpu)
346  curdev等于evtdev
349  如果非tick_check_percpu(curdev, newdev, cpu)则转到:out_bc
353  如果非tick_check_preferred(curdev, newdev)则转到:out_bc
356  如果非判断模块是否处于活动状态则返回
364  如果Check, if the device is the broadcast device
365  lockevents_shutdown - shutdown the device and clear next_event*@dev: device to shutdown
366  curdev = NULL
368  lockevents_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.
369  Setup the tick device
370  如果features按位与CLOCK_EVT_FEAT_ONESHOTtick_oneshot_notify()
372  返回
374  out_bc :
378  Conditionally install/replace broadcast device
调用者
名称描述
clockevents_notify_releasedCalled after a notify add to make devices available which were* released from the notifier call.
clockevents_register_devicelockevents_register_device - register a clock event device*@dev: device to register