pub unsafe extern "C" fn k_work_init(
work: *mut k_work,
handler: Option<unsafe extern "C" fn(_: *mut k_work)>,
)
Expand description
@brief Initialize a (non-delayable) work structure.
This must be invoked before submitting a 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 work the work structure to be initialized.
@param handler the handler to be invoked by the work item.