Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Enqueue the timer into the hash bucket, mark it pending in* the bitmap and store the index in the timer flags.

Proto:static void enqueue_timer(struct timer_base *base, struct timer_list *timer, unsigned int idx)

Type:void

Parameter:

TypeParameterName
struct timer_base *base
struct timer_list *timer
unsigned intidx
540  hlist_add_head( & * All fields that change during normal runtime grouped to the * same cacheline, vectors + idx)
541  __set_bit - Set a bit in memory*@nr: the bit to set*@addr: the address to start counting from* Unlike set_bit(), this function is non-atomic. If it is called on the same* region of memory concurrently, the effect may be that only one operation* succeeds.
542  timer_set_idx(timer, idx)
544  mer_start - called when the timer is started*@timer: pointer to struct timer_list*@expires: the timers expiry time
Caller
NameDescribe
__internal_add_timer
__mod_timer