1. NAME▲
cancel_work_sync - cancel a work and wait for it to finish
2. SYNOPSIS ▲
bool cancel_work_sync(struct work_struct * work );
3. ARGUMENTS ▲
work
the work to cancel
4. DESCRIPTION ▲
Cancel work and wait for its execution to finish. This function can be used even if the work re-queues itself or migrates to another workqueue. On return from this function, work is guaranteed to be not pending or executing on any CPU.
cancel_work_sync(delayed_work->work) must not be used for delayed_workAqs. Use cancel_delayed_work_sync instead.
The caller must ensure that the workqueue on which work was last queued canAqt be destroyed before this function returns.
5. RETURNS ▲
true if work was pending, false otherwise.
6. COPYRIGHT ▲