zephyr::raw

Function k_work_poll_cancel

source
pub unsafe extern "C" fn k_work_poll_cancel(
    work: *mut k_work_poll,
) -> i32
Expand description

@brief Cancel a triggered work item.

This routine cancels the submission of triggered work item @a work. A triggered work item can only be canceled if no event triggered work submission.

@funcprops \isr_ok

@param work Address of delayed work item.

@retval 0 Work item canceled. @retval -EINVAL Work item is being processed or has completed its work.