Functions | |
int | l4blk::cmd::create_stream ([in] l4blk_driver_id_t drv,[in] unsigned long device,[in] unsigned long bandwidth,[in] unsigned long period,[in] unsigned long blk_size,[in] float q,[in] unsigned long meta_int,[out] l4blk_stream_t *stream) |
Create new real-time stream. | |
int | l4blk::cmd::close_stream ([in] l4blk_driver_id_t drv,[in] l4blk_stream_t stream) |
Close real-time stream. | |
int | l4blk::cmd::start_stream ([in] l4blk_driver_id_t drv,[in] l4blk_stream_t stream,[in] unsigned long time,[in] unsigned long request_no) |
Set stream start time. | |
int | l4blk::cmd::put_request ([in] l4blk_driver_id_t drv,[in] l4blk_blk_request_t request,[in, ref, size_is(sg_size), max_is(4096)] void *sg_list,[in] int sg_size,[in] int sg_num,[in] int sg_type) |
Send scatter-gather request to driver. | |
int | l4blk::cmd::ctrl ([in] l4blk_driver_id_t drv,[in] l4_uint32_t command,[in, ref, size_is(in_size)] void *in_args,[in] int in_size,[out, ref, prealloc_client, size_is(out_size)] void **out_args,[in, out] int *out_size) |
Generic driver control function. |
int l4blk::cmd::create_stream | ( | [in] l4blk_driver_id_t | drv, | |
[in] unsigned long | device, | |||
[in] unsigned long | bandwidth, | |||
[in] unsigned long | period, | |||
[in] unsigned long | blk_size, | |||
[in] float | q, | |||
[in] unsigned long | meta_int, | |||
[out] l4blk_stream_t * | stream | |||
) | [inherited] |
Create new real-time stream.
drv | Driver handle | |
device | Device id | |
bandwidth | Bandwidth of stream (bytes/s) | |
period | Period length (milliseconds) | |
blk_size | Blocksize (bytes) | |
q | Quality parameter | |
meta_int | Metadata request interval (number of regular requests per metadata request) |
stream | Stream handle |
int l4blk::cmd::close_stream | ( | [in] l4blk_driver_id_t | drv, | |
[in] l4blk_stream_t | stream | |||
) | [inherited] |
Close real-time stream.
drv | Driver handle | |
stream | Stream handle. |
int l4blk::cmd::start_stream | ( | [in] l4blk_driver_id_t | drv, | |
[in] l4blk_stream_t | stream, | |||
[in] unsigned long | time, | |||
[in] unsigned long | request_no | |||
) | [inherited] |
Set stream start time.
drv | Driver handle | |
stream | Stream handle. | |
time | Time (deadline) of first request (milliseconds) | |
request_no | Request number of first request |
int l4blk::cmd::put_request | ( | [in] l4blk_driver_id_t | drv, | |
[in] l4blk_blk_request_t | request, | |||
[in, ref, size_is(sg_size), max_is(4096)] void * | sg_list, | |||
[in] int | sg_size, | |||
[in] int | sg_num, | |||
[in] int | sg_type | |||
) | [inherited] |
Send scatter-gather request to driver.
drv | Driver handle | |
request | Request | |
sg_list | Buffer list | |
sg_size | Sizr of sg_list (bytes) | |
sg_num | Number of buffers in buffer list | |
sg_type | Type of scatter-gather list: |
int l4blk::cmd::ctrl | ( | [in] l4blk_driver_id_t | drv, | |
[in] l4_uint32_t | command, | |||
[in, ref, size_is(in_size)] void * | in_args, | |||
[in] int | in_size, | |||
[out, ref, prealloc_client, size_is(out_size)] void ** | out_args, | |||
[in, out] int * | out_size | |||
) | [inherited] |
Generic driver control function.
drv | Driver handle | |
command | Control command | |
in_args | Input buffer | |
in_size | Size of input buffer | |
out_args | Output buffer | |
out_size | Size of output buffer |