| #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) |
| p = malloc_cache_aligned(size); |
| if (p && flags & __GFP_ZERO) |
| 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 malloc_cache_aligned(obj->sz); |
| * kmemdup - duplicate region of memory |
| * @src: memory region to duplicate |
| * @len: memory region length |
| * Return: newly allocated copy of @src or %NULL in case of error |
| void *kmemdup(const void *src, size_t len, gfp_t gfp) |