Manager
C++ device manager declarations.
The Cuddl device manager exposes device memory regions and event sources to
user-space applications. The routines described here may be used to query the
device memory regions and event sources that have been made available to
user-space applications by Cuddl kernel drivers. The following entities are
defined in the cuddl namespace.
-
inline int cuddl::get_max_managed_devices()
C++ wrapper for
cuddl_get_max_managed_devices().- Throws:
std::system_error – Operation failed.
-
inline int cuddl::get_max_dev_mem_regions()
C++ wrapper for
cuddl_get_max_dev_mem_regions().- Throws:
std::system_error – Operation failed.
-
inline int cuddl::get_max_dev_events()
C++ wrapper for
cuddl_get_max_dev_events().- Throws:
std::system_error – Operation failed.
-
inline ResourceID cuddl::get_memregion_id_for_slot(int device_slot, int mem_slot)
C++ wrapper for
cuddl_get_memregion_id_for_slot().- Throws:
std::system_error – Operation failed.
-
inline ResourceID cuddl::get_eventsrc_id_for_slot(int device_slot, int event_slot)
C++ wrapper for
cuddl_get_eventsrc_id_for_slot().- Throws:
std::system_error – Operation failed.
-
inline MemRegionInfo cuddl::get_memregion_info_for_id(const cuddl_resource_id &id)
C++ wrapper for
cuddl_get_memregion_info_for_id().- Throws:
std::system_error – Operation failed.
-
inline EventSrcInfo cuddl::get_eventsrc_info_for_id(const cuddl_resource_id &id)
C++ wrapper for
cuddl_get_eventsrc_info_for_id().- Throws:
std::system_error – Operation failed.
-
inline int cuddl::get_memregion_ref_count_for_id(const cuddl_resource_id &id)
C++ wrapper for
cuddl_get_memregion_ref_count_for_id().- Throws:
std::system_error – Operation failed.
-
inline int cuddl::get_eventsrc_ref_count_for_id(const cuddl_resource_id &id)
C++ wrapper for
cuddl_get_eventsrc_ref_count_for_id().- Throws:
std::system_error – Operation failed.
-
inline int cuddl::decrement_memregion_ref_count_for_id(const cuddl_resource_id &id)
C++ wrapper for
cuddl_decrement_memregion_ref_count_for_id().- Throws:
std::system_error – Operation failed.
-
inline int cuddl::decrement_eventsrc_ref_count_for_id(const cuddl_resource_id &id)
C++ wrapper for
cuddl_decrement_eventsrc_ref_count_for_id().- Throws:
std::system_error – Operation failed.
-
inline std::string cuddl::get_driver_info_for_memregion_id(const cuddl_resource_id &id)
C++ wrapper for
cuddl_get_driver_info_for_memregion_id().- Throws:
std::system_error – Operation failed.
-
inline std::string cuddl::get_driver_info_for_eventsrc_id(const cuddl_resource_id &id)
C++ wrapper for
cuddl_get_driver_info_for_eventsrc_id().- Throws:
std::system_error – Operation failed.
-
inline std::string cuddl::get_hw_info_for_memregion_id(const cuddl_resource_id &id)
C++ wrapper for
cuddl_get_hw_info_for_memregion_id().- Throws:
std::system_error – Operation failed.
-
inline std::string cuddl::get_hw_info_for_eventsrc_id(const cuddl_resource_id &id)
C++ wrapper for
cuddl_get_hw_info_for_eventsrc_id().- Throws:
std::system_error – Operation failed.