3 #include <linux/compat.h>
5 struct p_current cur = {
8 __maybe_unused struct p_current *current = &cur;
10 unsigned long copy_from_user(void *dest, const void *src,
13 memcpy((void *)dest, (void *)src, count);
17 void *kmalloc(size_t size, int flags)
21 p = memalign(ARCH_DMA_MINALIGN, size);
22 if (flags & __GFP_ZERO)
28 struct kmem_cache *get_mem(int element_sz)
30 struct kmem_cache *ret;
32 ret = memalign(ARCH_DMA_MINALIGN, sizeof(struct kmem_cache));
38 void *kmem_cache_alloc(struct kmem_cache *obj, int flag)
40 return memalign(ARCH_DMA_MINALIGN, obj->sz);