Skip to content

XvioGetRingBufferContextSafe

Safe version of XvioGetRingBufferContext. Essentially just checks if the XVIO context is initialized and the ContextId parameter matches the ring buffer's context ID.

Syntax

C++
PXVIO_RING_BUFFER XvioGetRingBufferContext(
    uint32_t TargetPartition,
    uint32_t ContextId
);

Parameters

uint32_t TargetPartition
The Partition ID of the partition the ring buffer targets.

uint32_t ContextId
The Context ID of the XVIO context the ring buffer targets.

Return value

Returns a pointer to a XVIO_RING_BUFFER structure.

Authors: Harry Woolford