*参照元 [#j036548b]
#backlinks

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

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


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


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


**参考 [#x36cb963]


*実装 [#e848a632]
 #ifdef CONFIG_TRANSPARENT_HUGEPAGE
-
--[[linux-4.4.1/CONFIG_TRANSPARENT_HUGEPAGE]]

 /*
  * PageHuge() only returns true for hugetlbfs pages, but not for
  * normal or transparent huge pages.
  *
  * PageTransHuge() returns true for both transparent huge and
  * hugetlbfs pages, but not normal pages. PageTransHuge() can only be
  * called only in the core VM paths where hugetlbfs pages can't exist.
  */
 static inline int PageTransHuge(struct page *page)
 {
 	VM_BUG_ON_PAGE(PageTail(page), page);
 	return PageHead(page);
 }
 ...
 
-
--[[linux-4.4.1/VM_BUG_ON_PAGE()]]
--[[linux-4.4.1/PageTail()]]
--[[linux-4.4.1/PageHead()]]

 /*
  * PageTransCompound returns true for both transparent huge pages
  * and hugetlbfs pages, so it should only be called when it's known
  * that hugetlbfs pages aren't involved.
  */
 static inline int PageTransCompound(struct page *page)
 {
 	return PageCompound(page);
 }
 
-
--[[linux-4.4.1/PageCompound()]]

 /*
  * PageTransTail returns true for both transparent huge pages
  * and hugetlbfs pages, so it should only be called when it's known
  * that hugetlbfs pages aren't involved.
  */
 static inline int PageTransTail(struct page *page)
 {
 	return PageTail(page);
 }
 ...
 
-
--[[linux-4.4.1/PageTail()]]

 #else
 
 static inline int PageTransHuge(struct page *page)
 {
 	return 0;
 }
 ...
 
 static inline int PageTransCompound(struct page *page)
 {
 	return 0;
 }
 
 static inline int PageTransTail(struct page *page)
 {
 	return 0;
 }
 ...
 
 #endif


*コメント [#y16f420c]

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS