zephyr::raw

Function k_work_init_delayable

source
pub unsafe extern "C" fn k_work_init_delayable(
    dwork: *mut k_work_delayable,
    handler: Option<unsafe extern "C" fn(_: *mut k_work)>,
)
Expand description

@brief Initialize a delayable work structure.

This must be invoked before scheduling a delayable work structure for the first time. It need not be invoked again on the same work structure. It can be re-invoked to change the associated handler, but this must be done when the work item is idle.

@funcprops \isr_ok

@param dwork the delayable work structure to be initialized.

@param handler the handler to be invoked by the work item.