*参照元 [#ca7ad42c]
#backlinks

*説明 [#k2416306]
-パス: [[linux-4.4.1/include/linux/mm.h]]

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


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


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


**参考 [#a6eb2f97]


*実装 [#h480ad9a]
 /*
  * Methods to modify the page usage count.
  *
  * What counts for a page usage:
  * - cache mapping   (page->mapping)
  * - private data    (page->private)
  * - page mapped in a task's page tables, each mapping
  *   is counted separately
  *
  * Also, many kernel routines increase the page count before a critical
  * routine so they can be sure the page doesn't go away from under them.
  */
 
 /*
  * Drop a ref, return true if the refcount fell to zero (the page has no users)
  */
 static inline int put_page_testzero(struct page *page)
 {
         VM_BUG_ON_PAGE(atomic_read(&page->_count) == 0, page);
-
--[[linux-4.4.1/VM_BUG_ON_PAGE()]]
--[[linux-4.4.1/atomic_read()]]

         return atomic_dec_and_test(&page->_count);
-
--[[linux-4.4.1/atomic_dec_and_test()]]

 }


*コメント [#y612ea31]


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