xref: /linux/rust/helpers/vmalloc.c (revision 3e9201e4fe8bd78f4601a51212562505bbb60e3a)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #include <linux/mm.h>
4 #include <linux/vmalloc.h>
5 
6 __rust_helper void *__must_check __realloc_size(2)
7 rust_helper_vrealloc_node_align(const void *p, size_t size, unsigned long align,
8 				gfp_t flags, int node)
9 {
10 	return vrealloc_node_align(p, size, align, flags, node);
11 }
12 
13 __rust_helper bool rust_helper_is_vmalloc_addr(const void *x)
14 {
15 	return is_vmalloc_addr(x);
16 }
17