Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_init_timer

Proto:static void do_init_timer(struct timer_list *timer, void (*func)(struct timer_list *), unsigned int flags, const char *name, struct lock_class_key *key)

Type:void

Parameter:

TypeParameterName
struct timer_list *timer
void (*func
unsigned intflags
const char *name
struct lock_class_key *key
782  pprev = NULL
783  function = func
784  flags = flags | These macros fold the SMP functionality into a single CPU system()
785  Initialize a lock instance's lock-class mapping info:
Caller
NameDescribe
init_timer_key_timer_key - initialize a timer*@timer: the timer to be initialized*@func: timer callback function*@flags: timer flags*@name: name of the timer*@key: lockdep class key of the fake lock used for tracking timer* sync lock dependencies* init_timer_key() must