linux-2.6.33/dio_get_page()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#k0d85558]
#backlinks
*説明 [#s511fee0]
-パス: [[linux-2.6.33/fs/direct-io.c]]
-FIXME: これは何?
--説明
**引数 [#y8d68eb6]
-struct dio *dio
--
--[[linux-2.6.33/dio]]
**返り値 [#d7ddb2f6]
-struct page *
--
--[[linux-2.6.33/page]]
**参考 [#nb50063c]
*実装 [#o82cf1ec]
/*
* Get another userspace page. Returns an ERR_PTR on er...
* buffered inside the dio so that we can call get_user_...
* decent number of pages, less frequently. To provide ...
* L1 cache.
*/
static struct page *dio_get_page(struct dio *dio)
{
if (dio_pages_present(dio) == 0) {
int ret;
-
--[[linux-2.6.33/dio_pages_present()]]
ret = dio_refill_pages(dio);
if (ret)
return ERR_PTR(ret);
-
--[[linux-2.6.33/dio_refill_pages()]]
--[[linux-2.6.33/ERR_PTR()]]
BUG_ON(dio_pages_present(dio) == 0);
-
--[[linux-2.6.33/BUG_ON()]]
--[[linux-2.6.33/dio_pages_present()]]
}
return dio->pages[dio->head++];
}
*コメント [#sc88ede9]
終了行:
*参照元 [#k0d85558]
#backlinks
*説明 [#s511fee0]
-パス: [[linux-2.6.33/fs/direct-io.c]]
-FIXME: これは何?
--説明
**引数 [#y8d68eb6]
-struct dio *dio
--
--[[linux-2.6.33/dio]]
**返り値 [#d7ddb2f6]
-struct page *
--
--[[linux-2.6.33/page]]
**参考 [#nb50063c]
*実装 [#o82cf1ec]
/*
* Get another userspace page. Returns an ERR_PTR on er...
* buffered inside the dio so that we can call get_user_...
* decent number of pages, less frequently. To provide ...
* L1 cache.
*/
static struct page *dio_get_page(struct dio *dio)
{
if (dio_pages_present(dio) == 0) {
int ret;
-
--[[linux-2.6.33/dio_pages_present()]]
ret = dio_refill_pages(dio);
if (ret)
return ERR_PTR(ret);
-
--[[linux-2.6.33/dio_refill_pages()]]
--[[linux-2.6.33/ERR_PTR()]]
BUG_ON(dio_pages_present(dio) == 0);
-
--[[linux-2.6.33/BUG_ON()]]
--[[linux-2.6.33/dio_pages_present()]]
}
return dio->pages[dio->head++];
}
*コメント [#sc88ede9]
ページ名: