GVM User Suite
User tools for the GVM open source project.
|
Go to the source code of this file.
Functions | |
struct NvMdev | create_nv_mgr () |
Creates a NVIDIA manager object. More... | |
void | free_nv_mgr (struct NvMdev *mgr) |
Deletes a NVIDIA manager object. More... | |
void | create_nv_mgr_mdevs (struct NvMdev *mgr, struct Gpu *limited, size_t gpu_size, struct MDevRequest *requested, size_t mdev_size) |
Creates necessary mediated devices on GPUs. More... | |
void | register_nv_mgr_mdevs (struct NvMdev *mgr) |
Registers mdevs on the OS. More... | |
struct NvMdev create_nv_mgr | ( | ) |
Creates a NVIDIA manager object.
This function initalizes the manager object for the NVIDIA GPU.
File System Side Effect: Can potentially create a few /dev files.
File System Side Effect: Opens /dev/nvidiactl.
File System Side Effect: Opens /dev/nvidiad for different GPUs.
RM Side Effect: Creates a RM Client.
RM Side Effect: Attaches a GPU to /dev/nvidiad.
RM Side Effect: Creates a RM Device Id.
RM Side Effect: Creates a RM Sub Device Id.
RM Side Effect: Creates a mdev configurator id.
Definition at line 42 of file manager.c.
void create_nv_mgr_mdevs | ( | struct NvMdev * | mgr, |
struct Gpu * | limited, | ||
size_t | gpu_size, | ||
struct MDevRequest * | requested, | ||
size_t | mdev_size | ||
) |
Creates necessary mediated devices on GPUs.
Creates mediated devices on the devices.
mgr | - Pointer to the manager for the NVIDIA driver. |
limited | - GPUs to limit the requested drivers on. |
gpu_size | - Size of the limited list. |
requested | - Requested MDevs to use. |
mdev_size | - Size of the requested list. |
Definition at line 184 of file manager.c.
void free_nv_mgr | ( | struct NvMdev * | mgr | ) |
Deletes a NVIDIA manager object.
This function destroys the manager object for the NVIDIA GPU.
RM Side Effect: Deletes a RM Client.
RM Side Effect: DeAttaches a GPU from /dev/nvidiad.
RM Side Effect: Deletes a RM Device Id.
RM Side Effect: Deletes a RM Sub Device Id.
RM Side Effect: Deletes a mdev configurator id.
mgr | - Pointer to the manager structure to free. |
Definition at line 158 of file manager.c.
void register_nv_mgr_mdevs | ( | struct NvMdev * | mgr | ) |
Registers mdevs on the OS.
This command actually registers the MDevs in the Operating System.
mgr | - Manager to register the MDevs for. |
Definition at line 267 of file manager.c.