Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Internal::RIoUring Class Reference

Definition at line 24 of file RIoUring.hxx.

Classes

struct  RReadEvent
 Basic read event composed of IO data and a target file descriptor. More...
 

Public Member Functions

 RIoUring ()
 
 RIoUring (const RIoUring &)=delete
 
 RIoUring (std::uint32_t entriesHint)
 
 ~RIoUring ()
 
std::uint32_t GetQueueDepth ()
 
struct io_uring * GetRawRing ()
 Access the raw io_uring instance.
 
RIoUringoperator= (const RIoUring &)=delete
 
void SubmitReadsAndWait (RReadEvent *readEvents, unsigned int nReads)
 Submit a number of read events and wait for completion.
 

Static Public Member Functions

static bool IsAvailable ()
 Check if io_uring is available on this system.
 

Static Private Member Functions

static bool CheckIsAvailable ()
 

Private Attributes

std::uint32_t fDepth = 0
 
struct io_uring fRing
 

#include <ROOT/RIoUring.hxx>

Constructor & Destructor Documentation

◆ RIoUring() [1/3]

ROOT::Internal::RIoUring::RIoUring ( )
inline

Definition at line 44 of file RIoUring.hxx.

◆ RIoUring() [2/3]

ROOT::Internal::RIoUring::RIoUring ( std::uint32_t  entriesHint)
inlineexplicit

Definition at line 67 of file RIoUring.hxx.

◆ RIoUring() [3/3]

ROOT::Internal::RIoUring::RIoUring ( const RIoUring )
delete

◆ ~RIoUring()

ROOT::Internal::RIoUring::~RIoUring ( )
inline

Definition at line 79 of file RIoUring.hxx.

Member Function Documentation

◆ CheckIsAvailable()

static bool ROOT::Internal::RIoUring::CheckIsAvailable ( )
inlinestaticprivate

Definition at line 29 of file RIoUring.hxx.

◆ GetQueueDepth()

std::uint32_t ROOT::Internal::RIoUring::GetQueueDepth ( )
inline

Definition at line 90 of file RIoUring.hxx.

◆ GetRawRing()

struct io_uring * ROOT::Internal::RIoUring::GetRawRing ( )
inline

Access the raw io_uring instance.

Definition at line 95 of file RIoUring.hxx.

◆ IsAvailable()

static bool ROOT::Internal::RIoUring::IsAvailable ( )
inlinestatic

Check if io_uring is available on this system.

Definition at line 85 of file RIoUring.hxx.

◆ operator=()

RIoUring & ROOT::Internal::RIoUring::operator= ( const RIoUring )
delete

◆ SubmitReadsAndWait()

void ROOT::Internal::RIoUring::SubmitReadsAndWait ( RReadEvent readEvents,
unsigned int  nReads 
)
inline

Submit a number of read events and wait for completion.

Events are submitted in batches if the number of events is larger than the submission queue depth.

Definition at line 115 of file RIoUring.hxx.

Member Data Documentation

◆ fDepth

std::uint32_t ROOT::Internal::RIoUring::fDepth = 0
private

Definition at line 27 of file RIoUring.hxx.

◆ fRing

struct io_uring ROOT::Internal::RIoUring::fRing
private

Definition at line 26 of file RIoUring.hxx.

  • io/io/inc/ROOT/RIoUring.hxx