Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\posix-cpu-timers.c Create Date:2022-07-28 10:47:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:collect_timerqueue

Proto:static u64 collect_timerqueue(struct timerqueue_head *head, struct list_head *firing, u64 now)

Type:u64

Parameter:

TypeParameterName
struct timerqueue_head *head
struct list_head *firing
u64now
767  i = 0
769  When next = 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. cycle
773  ctmr = 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.(next, structcpu_timer, node)
774  expires = cpu_timer_getexpires(ctmr)
776  If ++i == MAX_COLLECTED || now < expires Then Return expires
779  firing = 1
780  cpu_timer_dequeue(ctmr)
781  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
784  Return U64_MAX
Caller
NameDescribe
collect_posix_cputimers