函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\direct-io.c Create Date:2022-07-29 10:46:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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 inline struct page *dio_get_page(struct dio *dio, struct dio_submit *sdio)

返回类型:struct page

参数:

类型参数名称
struct dio *dio
struct dio_submit *sdio
214  如果How many pages are in the queue?恒等于0则
217  ret等于Go grab and pin some userspace pages. Typically we'll get 64 at a time.
218  如果ret则返回:错误号
220  BUG_ON(How many pages are in the queue? == 0)
222  返回:page buffer [xt page to process ]
调用者
名称描述
do_direct_IOWalk the user pages, and the file, mapping blocks to disk and generating* a sequence of (page,offset,len,block) mappings. These mappings are injected* into submit_page_section(), which takes care of the next stage of submission