GVM User Suite
User tools for the GVM open source project.
device.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 2666680 Ontario Inc.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  *
18  */
19 #ifndef GPU_NVIDIA_DEVICE_H
20 #define GPU_NVIDIA_DEVICE_H
21 
22 #include <stdio.h>
23 #include <stdint.h>
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
39 int nv_open(
40  int32_t major,
41  uint16_t minor,
42  const char* path,
43  const char* proc_path
44 );
45 
53 int nv_open_dev(uint16_t minor);
54 
62 int nv_open_mdev(uint16_t minor);
63 
64 #ifdef __cplusplus
65 };
66 #endif
67 
68 #endif
int nv_open_dev(uint16_t minor)
Opens a traditional NVIDIA device.
Definition: device.c:65
int nv_open(int32_t major, uint16_t minor, const char *path, const char *proc_path)
Opens a Nvidia device.
Definition: device.c:33
int nv_open_mdev(uint16_t minor)
Opens a Mediated NVIDIA device.
Definition: device.c:82