Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\balloon_compaction.c Create Date:2022-07-28 16:32:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:alloon_page_dequeue - removes a page from balloon's page list and returns* its address to allow the driver to release the page

Proto:struct page *balloon_page_dequeue(struct balloon_dev_info *b_dev_info)

Type:struct page

Parameter:

TypeParameterName
struct balloon_dev_info *b_dev_info
180  LIST_HEAD(pages)
183  n_pages = alloon_page_list_dequeue() - removes pages from balloon's page list and* returns a list of the pages.*@b_dev_info: balloon device decriptor where we will grab a page from.*@pages: pointer to the list of pages that would be returned to the caller.
185  If n_pages != 1 Then
193  spin_lock_irqsave( & Protection to pages list , flags)
194  If Value for the false possibility is greater at compile time(list_empty - tests whether a list is empty*@head: the list to test. && !# of isolated pages for migration ) Then BUG()
197  spin_unlock_irqrestore( & Protection to pages list , flags)
198  Return NULL
200  Return list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & pages, structpage, lru)