PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
PgAioHandle Struct Reference

#include <aio_internal.h>

Data Fields

PgAioHandleState state:8
 
PgAioTargetID target:8
 
PgAioOp op:8
 
uint8 flags
 
uint8 num_callbacks
 
uint8 callbacks [PGAIO_HANDLE_MAX_CALLBACKS]
 
uint8 callbacks_data [PGAIO_HANDLE_MAX_CALLBACKS]
 
uint8 handle_data_len
 
int32 owner_procno
 
int32 result
 
dlist_node node
 
struct ResourceOwnerDataresowner
 
dlist_node resowner_node
 
uint64 generation
 
ConditionVariable cv
 
PgAioResult distilled_result
 
uint32 iovec_off
 
PgAioReturnreport_return
 
PgAioOpData op_data
 
PgAioTargetData target_data
 

Detailed Description

Definition at line 91 of file aio_internal.h.

Field Documentation

◆ callbacks

◆ callbacks_data

◆ cv

ConditionVariable PgAioHandle::cv

Definition at line 148 of file aio_internal.h.

Referenced by AioShmemInit(), pgaio_io_process_completion(), and pgaio_io_wait().

◆ distilled_result

PgAioResult PgAioHandle::distilled_result

◆ flags

◆ generation

◆ handle_data_len

◆ iovec_off

◆ node

dlist_node PgAioHandle::node

In which list the handle is registered, depends on the state:

  • IDLE, in per-backend list
  • HANDED_OUT - not in a list
  • DEFINED - not in a list
  • STAGED - in per-backend staged array
  • SUBMITTED - in issuer's in_flight list
  • COMPLETED_IO - in issuer's in_flight list
  • COMPLETED_SHARED - in issuer's in_flight list

Definition at line 135 of file aio_internal.h.

Referenced by AioShmemInit(), pgaio_io_prepare_submit(), and pgaio_io_reclaim().

◆ num_callbacks

◆ op

◆ op_data

◆ owner_procno

◆ report_return

PgAioReturn* PgAioHandle::report_return

◆ resowner

◆ resowner_node

dlist_node PgAioHandle::resowner_node

◆ result

◆ state

◆ target

◆ target_data

PgAioTargetData PgAioHandle::target_data

The documentation for this struct was generated from the following file: