*参照元 [#de162c4d]
#backlinks

*説明 [#i58ee640]
-パス: [[linux-2.6.33/mm/nommu.c]]

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


**引数 [#hfdd4660]
-struct task_struct *tsk
--
--[[linux-2.6.33/task_struct]]
-struct mm_struct *mm
--
--[[linux-2.6.33/mm_struct]]
-unsigned long start
--
-int nr_pages
--
-int write
--
-int force
--
-struct page **pages
--
--[[linux-2.6.33/page]]
-struct vm_area_struct **vmas
-
--[[linux-2.6.33/vm_area_struct]]


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


**参考 [#h40247c1]


*実装 [#c7072e6e]
 /*
  * get a list of pages in an address range belonging to the specified process
  * and indicate the VMA that covers each page
  * - this is potentially dodgy as we may end incrementing the page count of a
  *   slab page or a secondary page from a compound page
  * - don't permit access to VMAs that don't support it, such as I/O mappings
  */
 int get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
 	unsigned long start, int nr_pages, int write, int force,
 	struct page **pages, struct vm_area_struct **vmas)
 {
 	int flags = 0;
 
 	if (write)
 		flags |= FOLL_WRITE;
 	if (force)
 		flags |= FOLL_FORCE;
 
-
--[[linux-2.6.33/FOLL_WRITE]]
-
--[[linux-2.6.33/FOLL_FORCE]]

 	return __get_user_pages(tsk, mm, start, nr_pages, flags, pages, vmas);
-
--[[linux-2.6.33/__get_user_pages()]]

 }
 EXPORT_SYMBOL(get_user_pages);
-ライセンスに関係なくシンボルを公開する。
--[[linux-2.6.33/EXPORT_SYMBOL()]]


*コメント [#be291629]


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