linux-2.6.33/get_user_pages()(nommu)
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#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 ...
* and indicate the VMA that covers each page
* - this is potentially dodgy as we may end incrementin...
* slab page or a secondary page from a compound page
* - don't permit access to VMAs that don't support it, ...
*/
int get_user_pages(struct task_struct *tsk, struct mm_st...
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...
-
--[[linux-2.6.33/__get_user_pages()]]
}
EXPORT_SYMBOL(get_user_pages);
-ライセンスに関係なくシンボルを公開する。
--[[linux-2.6.33/EXPORT_SYMBOL()]]
*コメント [#be291629]
終了行:
*参照元 [#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 ...
* and indicate the VMA that covers each page
* - this is potentially dodgy as we may end incrementin...
* slab page or a secondary page from a compound page
* - don't permit access to VMAs that don't support it, ...
*/
int get_user_pages(struct task_struct *tsk, struct mm_st...
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...
-
--[[linux-2.6.33/__get_user_pages()]]
}
EXPORT_SYMBOL(get_user_pages);
-ライセンスに関係なくシンボルを公開する。
--[[linux-2.6.33/EXPORT_SYMBOL()]]
*コメント [#be291629]
ページ名: