XenevaOS
Loading...
Searching...
No Matches
Public Attributes | List of all members
dma_resv_iter Struct Reference

#include <dma-resv.h>

Collaboration diagram for dma_resv_iter:
Collaboration graph
[legend]

Public Attributes

struct dma_resv * obj
 
enum dma_resv_usage usage
 
struct dma_fence * fence
 
enum dma_resv_usage fence_usage
 
unsigned int index
 
struct dma_resv_list * fences
 
unsigned int num_fences
 
bool is_restarted
 

Detailed Description

struct dma_resv_iter - current position into the dma_resv fences

Don't touch this directly in the driver, use the accessor function instead.

IMPORTANT

When using the lockless iterators like dma_resv_iter_next_unlocked() or dma_resv_for_each_fence_unlocked() beware that the iterator can be restarted. Code which accumulates statistics or similar needs to check for this with dma_resv_iter_is_restarted().

Member Data Documentation

◆ fence

struct dma_fence* dma_resv_iter::fence

@fence: the currently handled fence

◆ fence_usage

enum dma_resv_usage dma_resv_iter::fence_usage

@fence_usage: the usage of the current fence

◆ fences

struct dma_resv_list* dma_resv_iter::fences

@fences: the shared fences; private, MUST not dereference

◆ index

unsigned int dma_resv_iter::index

@index: index into the shared fences

◆ is_restarted

bool dma_resv_iter::is_restarted

@is_restarted: true if this is the first returned fence

◆ num_fences

unsigned int dma_resv_iter::num_fences

@num_fences: number of fences

◆ obj

struct dma_resv* dma_resv_iter::obj

@obj: The dma_resv object we iterate over

◆ usage

enum dma_resv_usage dma_resv_iter::usage

@usage: Return fences with this usage or lower.


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