[][src]Function linuxcnc_hal_sys::rtapi_fifo_new

pub unsafe extern "C" fn rtapi_fifo_new(
    key: c_int,
    module_id: c_int,
    size: c_ulong,
    mode: c_char
) -> c_int

'rtapi_fifo_new()' creates a realtime fifo. 'key' identifies the fifo, all modules wishing to access the same fifo must use the same key. 'module_id' is the ID of the module making the call (see rtapi_init). 'size' is the depth of the fifo. 'mode' is either 'R' or 'W', to request either read or write access to the fifo. On success, it returns a positive integer ID, which is used for subsequent calls dealing with the fifo. On failure, returns a negative error code. Call only from within user or init/cleanup code, not from realtime tasks.