函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mod_timer - modify a timer's timeout*@timer: the timer to be modified*@expires: new timeout in jiffies* mod_timer() is a more efficient way to update the expire field of an* active timer (if the timer is inactive it will be activated)* mod_timer(timer,

函数原型:int mod_timer(struct timer_list *timer, unsigned long expires)

返回类型:int

参数:

类型参数名称
struct timer_list *timer
unsigned longexpires
1100  返回:__mod_timer(timer, expires, 0)
调用者
名称描述
uv_heartbeatpercpu heartbeat timer
idle_worker_timeout
pool_mayday_timeout
maybe_create_workermaybe_create_worker - create a new worker if necessary*@pool: pool to create a new worker for* Create a new worker for @pool if necessary
poll_spurious_irqs
note_interrupt
rcu_torture_readerRCU torture reader kthread. Repeatedly dereferences rcu_torture_current,* incrementing the corresponding element of the pipeline array. The* counter in the element should never be greater than 1, otherwise, the* RCU implementation is broken.
add_timeradd_timer - start a timer*@timer: the timer to be added* The kernel will do a ->function(@timer) callback from the* timer interrupt at the ->expires point in the future
writeout_periodOn idle system, we can be called long after we scheduled because we use* deferred timers so count with missed periods.
laptop_io_completionWe've spun up the disk and we're in laptop mode: schedule writeback* of all dirty data a few seconds from now. If the flush is already scheduled* then push it back - the user is still using the disk.
blk_mq_timeout_work
throtl_schedule_pending_timerCall with queue lock held
blkcg_iolatency_throttle
__start_timer
worker_enter_idleworker_enter_idle - enter idle state*@worker: worker which is entering idle state*@worker is entering idle state. Update stats and idle timer if* necessary.* LOCKING:* spin_lock_irq(pool->lock).
wb_domain_writeout_inc
blk_stat_activate_nsecslk_stat_activate_nsecs() - Gather block statistics during a time window in* nanoseconds.*@cb: The callback.*@nsecs: Number of nanoseconds to gather statistics for.* The timer callback will be called when the window expires.
blk_stat_activate_msecslk_stat_activate_msecs() - Gather block statistics during a time window in* milliseconds.*@cb: The callback.*@msecs: Number of milliseconds to gather statistics for.* The timer callback will be called when the window expires.
blk_add_timerlk_add_timer - Start timeout timer for a single request*@req: request that is about to start running.* Notes:* Each request has its own timer, and as it is added to the queue, we* set up the timer. When the request completes, we cancel the timer.
key_schedule_gcSchedule a garbage collection run.* - time precision isn't particularly important