![]() |
GVM User Suite
User tools for the GVM open source project.
|
#include <gpu/nvidia/device.h>#include <utils/device.h>#include <stdio.h>#include <sys/stat.h>#include <sys/types.h>#include <fcntl.h>#include <unistd.h>
Go to the source code of this file.
Macros | |
| #define | MAKE_DEV(major, minor) ((dev_t) ((minor & 0xff) | (major << 8) | ((minor & ~0xff) << 12))) |
Functions | |
| int | nv_open (int32_t major, uint16_t minor, const char *path, const char *proc_path) |
| Opens a Nvidia device. More... | |
| int | nv_open_dev (uint16_t minor) |
| Opens a traditional NVIDIA device. More... | |
| int | nv_open_mdev (uint16_t minor) |
| Opens a Mediated NVIDIA device. More... | |
| #define MAKE_DEV | ( | major, | |
| minor | |||
| ) | ((dev_t) ((minor & 0xff) | (major << 8) | ((minor & ~0xff) << 12))) |
| int nv_open | ( | int32_t | major, |
| uint16_t | minor, | ||
| const char * | path, | ||
| const char * | proc_path | ||
| ) |
Opens a Nvidia device.
Definition at line 33 of file device.c.


| int nv_open_dev | ( | uint16_t | minor | ) |
Opens a traditional NVIDIA device.
Definition at line 65 of file device.c.


| int nv_open_mdev | ( | uint16_t | minor | ) |
Opens a Mediated NVIDIA device.
Definition at line 82 of file device.c.

