*参照元 [#q3fa1bf4]
#backlinks

*説明 [#x4dc177e]
-パス: [[linux-4.4.1/include/linux/page-flags.h]]

-FIXME: これは何?
--説明


**引数 [#la18adf8]
-struct page *page
--
--[[linux-4.4.1/page]]


**返り値 [#s363bb6a]
-int
--


**参考 [#ie11d5b6]


*実装 [#qa092d98]
 /*
  * PageBuddy() indicate that the page is free and in the buddy system
  * (see mm/page_alloc.c).
  *
  * PAGE_BUDDY_MAPCOUNT_VALUE must be <= -2 but better not too close to
  * -2 so that an underflow of the page_mapcount() won't be mistaken
  * for a genuine PAGE_BUDDY_MAPCOUNT_VALUE. -128 can be created very
  * efficiently by most CPU architectures.
  */
 #define PAGE_BUDDY_MAPCOUNT_VALUE (-128)
 
 static inline int PageBuddy(struct page *page)
 {
 	return atomic_read(&page->_mapcount) == PAGE_BUDDY_MAPCOUNT_VALUE;
 }
-
--[[linux-4.4.1/atomic_read()]]


*コメント [#pab506b4]


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS