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

Function untimeout

lib/ff_kern_timeout.c:650–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648}
649
650void
651untimeout(timeout_t *ftn, void *arg, struct callout_handle handle)
652{
653 struct callout_cpu *cc;
654
655 /*
656 * Check for a handle that was initialized
657 * by callout_handle_init, but never used
658 * for a real timeout.
659 */
660 if (handle.callout == NULL)
661 return;
662
663 cc = callout_lock(handle.callout);
664 if (handle.callout->c_func == ftn && handle.callout->c_arg == arg)
665 callout_stop(handle.callout);
666 CC_UNLOCK(cc);
667}
668
669void
670callout_handle_init(struct callout_handle *handle)

Callers 1

ipfdetachFunction · 0.85

Calls 1

callout_lockFunction · 0.70

Tested by

no test coverage detected