19 #ifndef GPU_NVIDIA_RESMAN_API_H
20 #define GPU_NVIDIA_RESMAN_API_H
42 uint8_t
rm_version_check(
int ctl_fd, uint8_t ignore_version,
const char* version);
119 void*
rm_ctrl_res(
int fd, uint32_t
client, uint32_t device, uint32_t command,
void* data, uint32_t size);
133 #define RM_CTRL(fd, res, cmd, data) rm_ctrl_res(fd, res->client, res->object, cmd, &data, sizeof(data))
148 #define _RM_CTRL(fd, client, object, cmd, data) rm_ctrl_res(fd, client, object, cmd, &data, sizeof(data))
uint8_t rm_alloc_os_event(int fd, uint32_t client_id, uint32_t device_id)
Allocates an Operating System Event.
void * rm_ctrl_res(int fd, uint32_t client, uint32_t device, uint32_t command, void *data, uint32_t size)
Control resource command.
void rm_free_tree(int fd, struct NvResource *root)
Frees a resource tree for the system.
uint8_t rm_version_check(int ctl_fd, uint8_t ignore_version, const char *version)
Version check for the RM API.
struct NvResource * rm_alloc_res(int fd, struct NvResource *parent, uint32_t object, uint32_t rm_class, void *data)
Allocates a Node for a resource.
uint8_t rm_free_res(int fd, struct NvResource *object)
Frees a Node for a Resource.
Resource for managing NVIDIA kernel module objects.
uint32_t rm_class
Class of the resource.
uint32_t client
All resources require a client/root.
uint32_t parent
Parent of the resource.