um_malloc.h 460 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2005 Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
  4. */
  5. #ifndef __UM_MALLOC_H__
  6. #define __UM_MALLOC_H__
  7. #include <generated/asm-offsets.h>
  8. extern void *uml_kmalloc(int size, int flags);
  9. extern void kfree(const void *ptr);
  10. extern void *vmalloc_noprof(unsigned long size);
  11. #define vmalloc(...) vmalloc_noprof(__VA_ARGS__)
  12. extern void vfree(const void *ptr);
  13. #endif /* __UM_MALLOC_H__ */