CANCEL_DELAYED_WORK_(9) Driver Basics CANCEL_DELAYED_WORK_(9)
NAME cancel_delayed_work_sync - reliably kill off a delayed work.
SYNOPSIS int cancel_delayed_work_sync(struct delayed_work * dwork);
ARGUMENTS dwork the delayed work struct
DESCRIPTION Returns true if dwork was pending.
It is possible to use this function if dwork rearms itself via queue_work or queue_delayed_work. See also the comment for cancel_work_sync.
COPYRIGHT Kernel Hackers Manual 2.6. April 2016 CANCEL_DELAYED_WORK_(9)