函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\iov_iter.c Create Date:2022-07-27 07:20:01
Last Modify:2022-05-21 11:43:54 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__pipe_get_pages

函数原型:static inline ssize_t __pipe_get_pages(struct iov_iter *i, size_t maxsize, struct page **pages, int iter_head, size_t *start)

返回类型:ssize_t

参数:

类型参数名称
struct iov_iter *i
size_tmaxsize
struct page **pages
intiter_head
size_t *start
1272  pipe等于pipe
1273  p_mask等于ring_size减1
1274  n等于push_pipe(i, maxsize, & iter_head, start)
1275  如果非n则返回:负EFAULT
1278  maxsize等于n
1279  n加等于start
1280 n大于0循环
1281  get_page( * pages++ = page)
1282  iter_head自加
1283  n减等于PAGE_SIZE
1286  返回:maxsize
调用者
名称描述
pipe_get_pages
pipe_get_pages_alloc