RTEMS  5.1
Data Structures | Macros | Functions | Variables
aio_misc.h File Reference

POSIX Asynchronous Input and Output Private Support. More...

#include <stdio.h>
#include <string.h>
#include <aio.h>
#include <pthread.h>
#include <rtems.h>
#include <rtems/chain.h>
#include <rtems/seterr.h>

Go to the source code of this file.

Data Structures

struct  rtems_aio_request
 
struct  rtems_aio_request_chain
 
struct  rtems_aio_queue
 

Macros

#define AIO_QUEUE_INITIALIZED   0xB00B
 
#define AIO_MAX_THREADS   5
 
#define AIO_MAX_QUEUE_SIZE   30
 
#define AIO_assert(_x)
 
#define AIO_printf(_x)
 
#define rtems_aio_set_errno_return_minus_one(_error, _aiocbp)
 

Functions

int rtems_aio_init (void)
 
int rtems_aio_enqueue (rtems_aio_request *req)
 
rtems_aio_request_chainrtems_aio_search_fd (rtems_chain_control *chain, int fildes, int create)
 
void rtems_aio_remove_fd (rtems_aio_request_chain *r_chain)
 
int rtems_aio_remove_req (rtems_chain_control *chain, struct aiocb *aiocbp)
 

Variables

rtems_aio_queue aio_request_queue
 

Detailed Description

POSIX Asynchronous Input and Output Private Support.

This defines private information for the AIO implementation.

Macro Definition Documentation

◆ rtems_aio_set_errno_return_minus_one

#define rtems_aio_set_errno_return_minus_one (   _error,
  _aiocbp 
)
Value:
do { (_aiocbp)->error_code = (_error); \
(_aiocbp)->return_value = -1; \
rtems_set_errno_and_return_minus_one (_error);} while(0)