pub unsafe extern "C" fn k_work_user_submit_to_queue(
work_q: *mut k_work_user_q,
work: *mut k_work_user,
) -> i32
Expand description
@brief Submit a work item to a user mode workqueue
Submits a work item to a workqueue that runs in user mode. A temporary memory allocation is made from the caller’s resource pool which is freed once the worker thread consumes the k_work item. The workqueue thread must have memory access to the k_work item being submitted. The caller must have permission granted on the work_q parameter’s queue object.
@funcprops \isr_ok
@param work_q Address of workqueue. @param work Address of work item.
@retval -EBUSY if the work item was already in some workqueue @retval -ENOMEM if no memory for thread resource pool allocation @retval 0 Success