summaryrefslogtreecommitdiffstats
path: root/include/sys/kmem.h
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-01-26 09:02:04 -0800
committerBrian Behlendorf <[email protected]>2009-01-26 09:02:04 -0800
commit48e0606a525527bef5b50172b4967a3f6cf1aa4d (patch)
tree23fec97dc4bdd0267e3b91eb54f94a05710a1bc8 /include/sys/kmem.h
parente4f3ea278e05b5b23e857cf6cf061caddf5ce148 (diff)
Implement kmem cache alignment argument
Diffstat (limited to 'include/sys/kmem.h')
-rw-r--r--include/sys/kmem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sys/kmem.h b/include/sys/kmem.h
index ef401ade4..ef5876312 100644
--- a/include/sys/kmem.h
+++ b/include/sys/kmem.h
@@ -225,6 +225,7 @@ extern struct rw_semaphore spl_kmem_cache_sem;
#define SPL_KMEM_CACHE_DELAY 5
#define SPL_KMEM_CACHE_OBJ_PER_SLAB 32
+#define SPL_KMEM_CACHE_ALIGN 8
typedef int (*spl_kmem_ctor_t)(void *, void *, int);
typedef void (*spl_kmem_dtor_t)(void *, void *);
@@ -270,6 +271,7 @@ typedef struct spl_kmem_cache {
void *skc_vmp; /* Unused */
uint32_t skc_flags; /* Flags */
uint32_t skc_obj_size; /* Object size */
+ uint32_t skc_obj_align; /* Object alignment */
uint32_t skc_slab_objs; /* Objects per slab */
uint32_t skc_slab_size; /* Slab size */
uint32_t skc_delay; /* slab reclaim interval */