mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 16:36:48 +07:00
43f5b3085f
Reintroduce uml_kmalloc for the benefit of UML libc code. The previous tactic of declaring __kmalloc so it could be called directly from the libc side of the house turned out to be getting too intimate with slab, and it doesn't work with slob. So, the uml_kmalloc wrapper is back. It calls kmalloc or whatever that translates into, and libc code calls it. kfree is left alone since that still works, leaving a somewhat inconsistent API. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Cc: WANG Cong <xiyou.wangcong@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
20 lines
377 B
C
20 lines
377 B
C
/*
|
|
* Copyright (C) 2005 Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
|
|
* Licensed under the GPL
|
|
*/
|
|
|
|
#ifndef __UM_MALLOC_H__
|
|
#define __UM_MALLOC_H__
|
|
|
|
#include "kern_constants.h"
|
|
|
|
extern void *uml_kmalloc(int size, int flags);
|
|
extern void kfree(const void *ptr);
|
|
|
|
extern void *vmalloc(unsigned long size);
|
|
extern void vfree(void *ptr);
|
|
|
|
#endif /* __UM_MALLOC_H__ */
|
|
|
|
|