Monado OpenXR Runtime
Loading...
Searching...
No Matches
oxr_io_cache.c File Reference

Per-session snapshot wrapper around xrt_io_cache. More...

#include "xrt/xrt_system.h"
#include "util/u_misc.h"
#include "../oxr_logger.h"
#include "oxr_io_cache.h"
#include <stdlib.h>
Include dependency graph for oxr_io_cache.c:

Macros

#define OXR_IO_CACHE_RECREATE_MAX_ATTEMPTS   8
 Bounded number of get_info/allocate/read attempts when the device layout keeps changing under us (rapid hotplug).
 

Functions

XrResult oxr_io_cache_recreate (struct oxr_logger *log, struct oxr_io_cache *cache)
 
XrResult oxr_io_cache_init (struct oxr_io_cache *cache, struct xrt_system_devices *xsysd, struct xrt_space_overseer *xso)
 
void oxr_io_cache_fini (struct oxr_io_cache *cache)
 
XrResult oxr_io_cache_sync (struct oxr_logger *log, struct oxr_io_cache *cache, bool *out_stale)
 
const struct xrt_io_cache_device * oxr_io_cache_find_device (const struct oxr_io_cache *cache, struct xrt_device_id id)
 
struct xrt_input * oxr_io_cache_find_input (const struct oxr_io_cache *cache, const struct xrt_io_cache_device *dev, enum xrt_input_name name)
 
bool oxr_io_cache_has_output (const struct oxr_io_cache *cache, const struct xrt_io_cache_device *dev, enum xrt_output_name name)
 

Detailed Description

Per-session snapshot wrapper around xrt_io_cache.

Macro Definition Documentation

◆ OXR_IO_CACHE_RECREATE_MAX_ATTEMPTS

#define OXR_IO_CACHE_RECREATE_MAX_ATTEMPTS   8

Bounded number of get_info/allocate/read attempts when the device layout keeps changing under us (rapid hotplug).