aboutsummaryrefslogtreecommitdiffstats
path: root/include/nvgpu/linux/kmem.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/nvgpu/linux/kmem.h')
-rw-r--r--include/nvgpu/linux/kmem.h47
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
20struct gk20a;
21struct device;
22
23#ifdef CONFIG_NVGPU_TRACK_MEM_USAGE
24void *__nvgpu_track_vmalloc(struct gk20a *g, unsigned long size, void *ip);
25void *__nvgpu_track_vzalloc(struct gk20a *g, unsigned long size, void *ip);
26void *__nvgpu_track_kmalloc(struct gk20a *g, size_t size, void *ip);
27void *__nvgpu_track_kzalloc(struct gk20a *g, size_t size, void *ip);
28void *__nvgpu_track_kcalloc(struct gk20a *g, size_t n, size_t size, void *ip);
29void __nvgpu_track_vfree(struct gk20a *g, void *addr);
30void __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 */
39void *__nvgpu_kmalloc(struct gk20a *g, size_t size, void *ip);
40void *__nvgpu_kzalloc(struct gk20a *g, size_t size, void *ip);
41void *__nvgpu_kcalloc(struct gk20a *g, size_t n, size_t size, void *ip);
42void *__nvgpu_vmalloc(struct gk20a *g, unsigned long size, void *ip);
43void *__nvgpu_vzalloc(struct gk20a *g, unsigned long size, void *ip);
44void __nvgpu_kfree(struct gk20a *g, void *addr);
45void __nvgpu_vfree(struct gk20a *g, void *addr);
46
47#endif