函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\relay.c Create Date:2022-07-27 12:51:27
Last Modify:2020-03-17 19:20:22 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:allocate an array of pointers of struct page

函数原型:static struct page **relay_alloc_page_array(unsigned int n_pages)

返回类型:struct page

参数:

类型参数名称
unsigned intn_pages
73  pa_size等于n_pages乘*的长度
74  如果pa_size大于PAGE_SIZE则返回:vzalloc(pa_size)
76  返回:分配内存并置零
调用者
名称描述
relay_alloc_buflay_alloc_buf - allocate a channel buffer*@buf: the buffer struct*@size: total size of the buffer* Returns a pointer to the resulting buffer, %NULL if unsuccessful. The* passed in size will get page aligned, if it isn't already.