pub unsafe extern "C" fn k_work_delayable_from_work(
work: *mut k_work,
) -> *mut k_work_delayable
Expand description
@brief Get the parent delayable work structure from a work pointer.
This function is necessary when a @c k_work_handler_t function is passed to
k_work_schedule_for_queue() and the handler needs to access data from the
container of the containing k_work_delayable
.
@param work Address passed to the work handler
@return Address of the containing @c k_work_delayable structure.