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 }
개인 도구
이름공간
변수
행위
둘러보기
구성원
연구
연구실
기타
도구모음
인쇄/내보내기