*参照元 [#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 error.  Pages are
  * buffered inside the dio so that we can call get_user_pages() against a
  * decent number of pages, less frequently.  To provide nicer use of the
  * 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]


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