函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\timerfd.c Create Date:2022-07-29 10:51:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Called when the clock was set to cancel the timers in the cancel* list. This will wake up processes waiting on these timers. The* wake-up requires ctx->ticks to be non zero, therefore we increment* it before calling wake_up_locked().

函数原型:void timerfd_clock_was_set(void)

返回类型:void

参数:

98  moffs等于ktime_mono_to_real - Convert monotonic time to clock realtime
102  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
104  如果非might_cancel则继续下一循环
106  spin_lock_irqsave( & lock, flags)
107  如果moffs不等于moffs
108  moffs等于KTIME_MAX
109  ticks自加
110  wake_up_locked_poll( & wqh, Epoll event masks )
112  spin_unlock_irqrestore( & lock, flags)
114  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
调用者
名称描述
clock_was_setClock realtime was set* Change the offset of the realtime clock vs. the monotonic* clock.* We might have to reprogram the high resolution timer interrupt. On* SMP we call the architecture specific code to retrigger _all_ high* resolution timer interrupts