![]() |
GVM User Suite
User tools for the GVM open source project.
|
#include <gpu/nvidia/device.h>#include <gpu/nvidia/manager.h>#include <gpu/nvidia/resman/api.h>#include <gpu/nvidia/resman/classes.h>#include <stdlib.h>#include <string.h>#include <unistd.h>
Go to the source code of this file.
Functions | |
| static uint32_t | compose_manager_id (uint32_t client, uint32_t gpu_id, uint32_t handle) |
| Inline function to create device ids. More... | |
| 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... | |
Variables | |
| static const char | SIGN [128] |
| Hardcoded signature. More... | |
|
inlinestatic |
| struct NvMdev create_nv_mgr | ( | ) |
| 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 | ) |
| 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.


|
static |
Hardcoded signature.