MCPcopy Create free account
hub / github.com/F-Stack/f-stack / callout_init

Function callout_init

lib/ff_kern_timeout.c:1011–1023  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1009}
1010
1011void
1012callout_init(struct callout *c, int mpsafe)
1013{
1014 bzero(c, sizeof *c);
1015 if (mpsafe) {
1016 c->c_lock = NULL;
1017 c->c_iflags = CALLOUT_RETURNUNLOCKED;
1018 } else {
1019 c->c_lock = &Giant.lock_object;
1020 c->c_iflags = 0;
1021 }
1022 c->c_cpu = timeout_cpu;
1023}
1024
1025void
1026_callout_init_lock(struct callout *c, struct lock_object *lock, int flags)

Callers 3

callout_cpu_initFunction · 0.70
proc0_initFunction · 0.70
ff_adapt_user_proc_addFunction · 0.70

Calls 1

bzeroFunction · 0.85

Tested by

no test coverage detected