Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef SLAB_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define SLAB_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #include <linux/gfp.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #define SLAB_HWCACHE_ALIGN 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #define SLAB_PANIC 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #define SLAB_RECLAIM_ACCOUNT    0x00020000UL            /* Objects are reclaimable */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) void *kmalloc(size_t size, gfp_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) void kfree(void *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) static inline void *kzalloc(size_t size, gfp_t gfp)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)         return kmalloc(size, gfp | __GFP_ZERO);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) void *kmem_cache_alloc(struct kmem_cache *cachep, int flags);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) void kmem_cache_free(struct kmem_cache *cachep, void *objp);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) struct kmem_cache *kmem_cache_create(const char *name, unsigned int size,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 			unsigned int align, unsigned int flags,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 			void (*ctor)(void *));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #endif		/* SLAB_H */