CANCEL_DELAYED_WORK_(9) Driver Basics CANCEL_DELAYED_WORK_(9)NAMEcancel_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.
COPYRIGHTKernel Hackers Manual 2.6. November 2013 CANCEL_DELAYED_WORK_(9)