GVM User Suite
User tools for the GVM open source project.
manager.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_MANAGER_H
20 #define GPU_NVIDIA_MANAGER_H
21 
22 #include <gpu/mdev.h>
23 
24 #include <gpu/nvidia/resources.h>
25 
26 #include <stdint.h>
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
47 struct NvMdev create_nv_mgr();
48 
61 void free_nv_mgr(struct NvMdev *mgr);
62 
76  struct NvMdev *mgr,
77  struct Gpu* limited,
78  size_t gpu_size,
79  struct MDevRequest* requested,
80  size_t mdev_size
81 );
82 
91 void register_nv_mgr_mdevs(struct NvMdev *mgr);
92 
93 #ifdef __cplusplus
94 };
95 #endif
96 
97 #endif
void register_nv_mgr_mdevs(struct NvMdev *mgr)
Registers mdevs on the OS.
Definition: manager.c:267
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.
Definition: manager.c:184
struct NvMdev create_nv_mgr()
Creates a NVIDIA manager object.
Definition: manager.c:49
void free_nv_mgr(struct NvMdev *mgr)
Deletes a NVIDIA manager object.
Definition: manager.c:158
GPU Base Structure.
Definition: mdev.h:33
Mediated Device Request Structure.
Definition: mdev.h:62
Structure for managing the mediated stack.
Definition: resources.h:74