Kmem cache zalloc
(버전 사이의 차이)
(새 문서: http://lxr.free-electrons.com/source/include/linux/slab.h#L628 <source lang="c"> 625 - →626 * Shortcuts 627: 628 static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t...) |
|||
7번째 줄: | 7번째 줄: | ||
628 static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags) | 628 static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags) | ||
629 { | 629 { | ||
− | 630 return kmem_cache_alloc(k, flags | __GFP_ZERO); | + | 630 return kmem_cache_alloc(k, flags | __GFP_ZERO); //GFP_ZERO is return zeroed page on success |
631 } | 631 } | ||
</source> | </source> |
2014년 4월 30일 (수) 12:00 판
http://lxr.free-electrons.com/source/include/linux/slab.h#L628
625 /* 626 * Shortcuts 627 */ 628 static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags) 629 { 630 return kmem_cache_alloc(k, flags | __GFP_ZERO); //GFP_ZERO is return zeroed page on success 631 }