diff options
Diffstat (limited to 'include/nvgpu/linux/kmem.h')
-rw-r--r-- | include/nvgpu/linux/kmem.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/include/nvgpu/linux/kmem.h b/include/nvgpu/linux/kmem.h deleted file mode 100644 index 660aac9..0000000 --- a/include/nvgpu/linux/kmem.h +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify it | ||
5 | * under the terms and conditions of the GNU General Public License, | ||
6 | * version 2, as published by the Free Software Foundation. | ||
7 | * | ||
8 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
11 | * more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #ifndef __NVGPU_KMEM_LINUX_H__ | ||
18 | #define __NVGPU_KMEM_LINUX_H__ | ||
19 | |||
20 | struct gk20a; | ||
21 | struct device; | ||
22 | |||
23 | #ifdef CONFIG_NVGPU_TRACK_MEM_USAGE | ||
24 | void *__nvgpu_track_vmalloc(struct gk20a *g, unsigned long size, void *ip); | ||
25 | void *__nvgpu_track_vzalloc(struct gk20a *g, unsigned long size, void *ip); | ||
26 | void *__nvgpu_track_kmalloc(struct gk20a *g, size_t size, void *ip); | ||
27 | void *__nvgpu_track_kzalloc(struct gk20a *g, size_t size, void *ip); | ||
28 | void *__nvgpu_track_kcalloc(struct gk20a *g, size_t n, size_t size, void *ip); | ||
29 | void __nvgpu_track_vfree(struct gk20a *g, void *addr); | ||
30 | void __nvgpu_track_kfree(struct gk20a *g, void *addr); | ||
31 | #endif | ||
32 | |||
33 | /** | ||
34 | * DOC: Linux pass through kmem implementation. | ||
35 | * | ||
36 | * These are the Linux implementations of the various kmem functions defined by | ||
37 | * nvgpu. This should not be included directly - instead include <nvgpu/kmem.h>. | ||
38 | */ | ||
39 | void *__nvgpu_kmalloc(struct gk20a *g, size_t size, void *ip); | ||
40 | void *__nvgpu_kzalloc(struct gk20a *g, size_t size, void *ip); | ||
41 | void *__nvgpu_kcalloc(struct gk20a *g, size_t n, size_t size, void *ip); | ||
42 | void *__nvgpu_vmalloc(struct gk20a *g, unsigned long size, void *ip); | ||
43 | void *__nvgpu_vzalloc(struct gk20a *g, unsigned long size, void *ip); | ||
44 | void __nvgpu_kfree(struct gk20a *g, void *addr); | ||
45 | void __nvgpu_vfree(struct gk20a *g, void *addr); | ||
46 | |||
47 | #endif | ||