Subversion Repositories Kolibri OS

Rev

Rev 6936 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6936 Rev 7143
Line 18... Line 18...
18
 
18
 
19
/*
19
/*
20
 * Flags to pass to kmem_cache_create().
20
 * Flags to pass to kmem_cache_create().
21
 * The ones marked DEBUG are only valid if CONFIG_DEBUG_SLAB is set.
21
 * The ones marked DEBUG are only valid if CONFIG_DEBUG_SLAB is set.
22
 */
22
 */
23
#define SLAB_DEBUG_FREE		0x00000100UL	/* DEBUG: Perform (expensive) checks on free */
23
#define SLAB_CONSISTENCY_CHECKS	0x00000100UL	/* DEBUG: Perform (expensive) checks on alloc/free */
24
#define SLAB_RED_ZONE		0x00000400UL	/* DEBUG: Red zone objs in a cache */
24
#define SLAB_RED_ZONE		0x00000400UL	/* DEBUG: Red zone objs in a cache */
25
#define SLAB_POISON		0x00000800UL	/* DEBUG: Poison objects */
25
#define SLAB_POISON		0x00000800UL	/* DEBUG: Poison objects */
26
#define SLAB_HWCACHE_ALIGN	0x00002000UL	/* Align objs on cache lines */
26
#define SLAB_HWCACHE_ALIGN	0x00002000UL	/* Align objs on cache lines */
27
#define SLAB_CACHE_DMA		0x00004000UL	/* Use GFP_DMA memory */
27
#define SLAB_CACHE_DMA		0x00004000UL	/* Use GFP_DMA memory */
Line 90... Line 90...
90
# define SLAB_ACCOUNT		0x04000000UL	/* Account to memcg */
90
# define SLAB_ACCOUNT		0x04000000UL	/* Account to memcg */
91
#else
91
#else
92
# define SLAB_ACCOUNT		0x00000000UL
92
# define SLAB_ACCOUNT		0x00000000UL
93
#endif
93
#endif
Line -... Line 94...
-
 
94
 
-
 
95
#ifdef CONFIG_KASAN
-
 
96
#define SLAB_KASAN		0x08000000UL
-
 
97
#else
-
 
98
#define SLAB_KASAN		0x00000000UL
-
 
99
#endif
94
 
100
 
95
/* The following flags affect the page allocator grouping pages by mobility */
101
/* The following flags affect the page allocator grouping pages by mobility */
96
#define SLAB_RECLAIM_ACCOUNT	0x00020000UL		/* Objects are reclaimable */
102
#define SLAB_RECLAIM_ACCOUNT	0x00020000UL		/* Objects are reclaimable */
97
#define SLAB_TEMPORARY		SLAB_RECLAIM_ACCOUNT	/* Objects are short-lived */
103
#define SLAB_TEMPORARY		SLAB_RECLAIM_ACCOUNT	/* Objects are short-lived */
98
/*
104
/*