zephyr::raw

Function k_work_user_queue_start

Source
pub unsafe extern "C" fn k_work_user_queue_start(
    work_q: *mut k_work_user_q,
    stack: *mut z_thread_stack_element,
    stack_size: usize,
    prio: i32,
    name: *const u8,
)
Expand description

@brief Start a workqueue in user mode

This works identically to k_work_queue_start() except it is callable from user mode, and the worker thread created will run in user mode. The caller must have permissions granted on both the work_q parameter’s thread and queue objects, and the same restrictions on priority apply as k_thread_create().

@param work_q Address of workqueue. @param stack Pointer to work queue thread’s stack space, as defined by K_THREAD_STACK_DEFINE() @param stack_size Size of the work queue thread’s stack (in bytes), which should either be the same constant passed to K_THREAD_STACK_DEFINE() or the value of K_THREAD_STACK_SIZEOF(). @param prio Priority of the work queue’s thread. @param name optional thread name. If not null a copy is made into the thread’s name buffer.