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

Function callout_init

freebsd/kern/kern_timeout.c:1312–1324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1310}
1311
1312void
1313callout_init(struct callout *c, int mpsafe)
1314{
1315 bzero(c, sizeof *c);
1316 if (mpsafe) {
1317 c->c_lock = NULL;
1318 c->c_iflags = CALLOUT_RETURNUNLOCKED;
1319 } else {
1320 c->c_lock = &Giant.lock_object;
1321 c->c_iflags = 0;
1322 }
1323 c->c_cpu = cc_default_cpu;
1324}
1325
1326void
1327_callout_init_lock(struct callout *c, struct lock_object *lock, int flags)

Callers 15

fail_point_alloc_calloutFunction · 0.70
filt_timerattachFunction · 0.70
threadinitFunction · 0.70
thread_linkFunction · 0.70
start_periodic_resettodrFunction · 0.70
constty_setFunction · 0.70
sysbeep_initFunction · 0.70
proc0_initFunction · 0.70
synch_setupFunction · 0.70
domaininitFunction · 0.70
vmem_start_calloutFunction · 0.70
ipf_timer_funcFunction · 0.50

Calls 1

bzeroFunction · 0.85

Tested by

no test coverage detected