- 追加された行はこの色です。
- 削除された行はこの色です。
*参照元 [#k970508b]
#backlinks
*説明 [#o3f9da9a]
-パス: [[linux-2.6.33/include/linux/slab.h]]
-FIXME: これは何?
--説明
**引数 [#a85d1eb0]
-__struct
--構造体の名前
--文字列ではなく、直接記述すること。
-unsigned long __flags
--
**返り値 [#pe40069c]
-struct kmem_cache *
--
--[[linux-2.6.33/kmem_cache]]
**参考 [#g3432f8f]
*実装 [#s1786556]
/*
* Please use this macro to create slab caches. Simply specify the
* name of the structure and maybe some flags that are listed above.
*
* The alignment of the struct determines object alignment. If you
* f.e. add ____cacheline_aligned_in_smp to the struct declaration
* then the objects will be properly aligned in SMP configurations.
*/
#define KMEM_CACHE(__struct, __flags) kmem_cache_create(#__struct,\
-
--[[linux-2.6.33/kmem_cache_create()]]
sizeof(struct __struct), __alignof__(struct __struct),\
-
--[[linux-2.6.33/__alignof__()]]
(__flags), NULL)
*コメント [#s12a2d19]