PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
aio_types.h File Reference
Include dependency graph for aio_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  PgAioWaitRef
 
union  PgAioTargetData
 
struct  PgAioResult
 
struct  PgAioReturn
 

Macros

#define PGAIO_RESULT_ID_BITS   6
 
#define PGAIO_RESULT_STATUS_BITS   3
 
#define PGAIO_RESULT_ERROR_BITS   23
 

Typedefs

typedef struct PgAioHandle PgAioHandle
 
typedef struct PgAioHandleCallbacks PgAioHandleCallbacks
 
typedef struct PgAioTargetInfo PgAioTargetInfo
 
typedef struct PgAioWaitRef PgAioWaitRef
 
typedef union PgAioTargetData PgAioTargetData
 
typedef enum PgAioResultStatus PgAioResultStatus
 
typedef struct PgAioResult PgAioResult
 
typedef struct PgAioReturn PgAioReturn
 

Enumerations

enum  PgAioResultStatus {
  PGAIO_RS_UNKNOWN , PGAIO_RS_OK , PGAIO_RS_PARTIAL , PGAIO_RS_WARNING ,
  PGAIO_RS_ERROR
}
 

Functions

 StaticAssertDecl (PGAIO_RESULT_ID_BITS+PGAIO_RESULT_STATUS_BITS+PGAIO_RESULT_ERROR_BITS==32, "PgAioResult bits divided up incorrectly")
 
 StaticAssertDecl (sizeof(PgAioResult)==8, "PgAioResult has unexpected size")
 

Macro Definition Documentation

◆ PGAIO_RESULT_ERROR_BITS

#define PGAIO_RESULT_ERROR_BITS   23

Definition at line 98 of file aio_types.h.

◆ PGAIO_RESULT_ID_BITS

#define PGAIO_RESULT_ID_BITS   6

Definition at line 96 of file aio_types.h.

◆ PGAIO_RESULT_STATUS_BITS

#define PGAIO_RESULT_STATUS_BITS   3

Definition at line 97 of file aio_types.h.

Typedef Documentation

◆ PgAioHandle

typedef struct PgAioHandle PgAioHandle

Definition at line 22 of file aio_types.h.

◆ PgAioHandleCallbacks

Definition at line 23 of file aio_types.h.

◆ PgAioResult

typedef struct PgAioResult PgAioResult

◆ PgAioResultStatus

◆ PgAioReturn

typedef struct PgAioReturn PgAioReturn

◆ PgAioTargetData

◆ PgAioTargetInfo

Definition at line 24 of file aio_types.h.

◆ PgAioWaitRef

typedef struct PgAioWaitRef PgAioWaitRef

Enumeration Type Documentation

◆ PgAioResultStatus

Enumerator
PGAIO_RS_UNKNOWN 
PGAIO_RS_OK 
PGAIO_RS_PARTIAL 
PGAIO_RS_WARNING 
PGAIO_RS_ERROR 

Definition at line 78 of file aio_types.h.

79{
80 PGAIO_RS_UNKNOWN, /* not yet completed / uninitialized */
82 PGAIO_RS_PARTIAL, /* did not fully succeed, no warning/error */
83 PGAIO_RS_WARNING, /* [partially] succeeded, with a warning */
84 PGAIO_RS_ERROR, /* failed entirely */
PgAioResultStatus
Definition: aio_types.h:79
@ PGAIO_RS_OK
Definition: aio_types.h:81
@ PGAIO_RS_UNKNOWN
Definition: aio_types.h:80
@ PGAIO_RS_PARTIAL
Definition: aio_types.h:82
@ PGAIO_RS_ERROR
Definition: aio_types.h:84
@ PGAIO_RS_WARNING
Definition: aio_types.h:83

Function Documentation

◆ StaticAssertDecl() [1/2]

StaticAssertDecl ( PGAIO_RESULT_ID_BITS+PGAIO_RESULT_STATUS_BITS PGAIO_RESULT_ERROR_BITS = =32,
"PgAioResult bits divided up incorrectly"   
)

◆ StaticAssertDecl() [2/2]

StaticAssertDecl ( sizeof(PgAioResult = =8,
"PgAioResult has unexpected size"   
)