Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\timer_list.c Create Date:2022-07-28 10:44:46
Last Modify:2020-03-17 14:55:40 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:print_active_timers

Proto:static void print_active_timers(struct seq_file *m, struct hrtimer_clock_base *base, u64 now)

Type:void

Parameter:

TypeParameterName
struct seq_file *m
struct hrtimer_clock_base *base
u64now
77  next = 0
81  next_one :
82  i = 0
84  h_nmi_watchdog - restart NMI watchdog timeout.* If the architecture supports the NMI watchdog, touch_nmi_watchdog()* may be used to reset the timeout - for code which intentionally* disables interrupts for a long time. This call is stateless.
86  raw_spin_lock_irqsave( & lock, flags)
88  curr = merqueue_getnext - Returns the timer with the earliest expiration time*@head: head of timerqueue* Returns a pointer to the timer node that has the earliest expiration time.
93  When curr && i < next cycle
94  curr = merqueue_iterate_next - Returns the timer after the provided timer*@node: Pointer to a timer.* Provides the timer that is after the given node. This is used, when* necessary, to iterate through the list of timers in a timer list
95  i++
98  If curr Then
100  timer = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(curr, structhrtimer, node)
101  tmp = timer
102  raw_spin_unlock_irqrestore( & lock, flags)
104  print_timer(m, timer, & tmp, i, now)
105  next++
106  Go to next_one
108  raw_spin_unlock_irqrestore( & lock, flags)
Caller
NameDescribe
print_base