函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Enqueue the timer into the hash bucket, mark it pending in* the bitmap and store the index in the timer flags.

函数原型:static void enqueue_timer(struct timer_base *base, struct timer_list *timer, unsigned int idx)

返回类型:void

参数:

类型参数名称
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
调用者
名称描述
__internal_add_timer
__mod_timer