Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\relay.c Create Date:2022-07-28 11:46:41
Last Modify:2020-03-17 19:20:22 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:allocate an array of pointers of struct page

Proto:static struct page **relay_alloc_page_array(unsigned int n_pages)

Type:struct page

Parameter:

TypeParameterName
unsigned intn_pages
73  pa_size = n_pages * size of *
74  If pa_size > PAGE_SIZE Then Return vzalloc(pa_size)
76  Return kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
Caller
NameDescribe
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.