zephyr::raw

Function k_work_delayable_remaining_get

source
pub unsafe extern "C" fn k_work_delayable_remaining_get(
    dwork: *const k_work_delayable,
) -> i64
Expand description

@brief Get the number of ticks until a scheduled delayable work will be submitted.

@note This is a live snapshot of state, which may change before the result can be inspected. Use locks where appropriate.

@funcprops \isr_ok

@param dwork pointer to the delayable work item.

@return the number of ticks until the timer that will schedule the work item will expire, or zero if the item is not scheduled.