| #include <linux/compat.h> |
| __maybe_unused struct p_current *current = &cur; |
| unsigned long copy_from_user(void *dest, const void *src, |
| memcpy((void *)dest, (void *)src, count); |
| void *kmalloc(size_t size, int flags) |
| return memalign(ARCH_DMA_MINALIGN, size); |
| void *kzalloc(size_t size, int flags) |
| void *ptr = kmalloc(size, flags); |
| void *vzalloc(unsigned long size) |
| struct kmem_cache *get_mem(int element_sz) |
| ret = memalign(ARCH_DMA_MINALIGN, sizeof(struct kmem_cache)); |
| void *kmem_cache_alloc(struct kmem_cache *obj, int flag) |
| return memalign(ARCH_DMA_MINALIGN, obj->sz); |