linux-4.4.1/put_page_testzero()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#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 be...
* routine so they can be sure the page doesn't go away ...
*/
/*
* Drop a ref, return true if the refcount fell to zero ...
*/
static inline int put_page_testzero(struct page *page)
{
VM_BUG_ON_PAGE(atomic_read(&page->_count) == 0, ...
-
--[[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]
終了行:
*参照元 [#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 be...
* routine so they can be sure the page doesn't go away ...
*/
/*
* Drop a ref, return true if the refcount fell to zero ...
*/
static inline int put_page_testzero(struct page *page)
{
VM_BUG_ON_PAGE(atomic_read(&page->_count) == 0, ...
-
--[[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]
ページ名: