zephyr::raw

Function k_work_schedule

source
pub unsafe extern "C" fn k_work_schedule(
    dwork: *mut k_work_delayable,
    delay: k_timeout_t,
) -> i32
Expand description

@brief Submit an idle work item to the system work queue after a delay.

This is a thin wrapper around k_work_schedule_for_queue(), with all the API characteristics of that function.

@param dwork pointer to the delayable work item.

@param delay the time to wait before submitting the work item. If @c K_NO_WAIT this is equivalent to k_work_submit_to_queue().

@return as with k_work_schedule_for_queue().