MCPcopy Index your code
hub / github.com/F-Stack/f-stack / callout_cc_add

Function callout_cc_add

lib/ff_kern_timeout.c:350–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350static void
351callout_cc_add(struct callout *c, struct callout_cpu *cc,
352 int to_ticks, void (*func)(void *), void *arg, int cpu, int flags)
353{
354 int bucket;
355
356 CC_LOCK_ASSERT(cc);
357
358 c->c_arg = arg;
359 c->c_iflags |= CALLOUT_PENDING;
360 c->c_iflags &= ~CALLOUT_PROCESSED;
361 c->c_flags |= CALLOUT_ACTIVE;
362 if (flags & C_DIRECT_EXEC)
363 c->c_iflags |= CALLOUT_DIRECT;
364 c->c_func = func;
365 c->c_time = ticks + to_ticks;
366 bucket = callout_get_bucket(c->c_time);
367 LIST_INSERT_HEAD(&cc->cc_callwheel[bucket], c, c_links.le);
368 if (cc->cc_bucket == bucket)
369 cc_exec_next(cc) = c;
370}
371
372static void
373callout_cc_del(struct callout *c, struct callout_cpu *cc)

Callers 1

callout_reset_tick_onFunction · 0.70

Calls 1

callout_get_bucketFunction · 0.70

Tested by

no test coverage detected