Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mm.h Create Date:2022-07-28 05:43:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Drop a ref, return true if the refcount fell to zero (the page has no users)

Proto:static inline int put_page_testzero(struct page *page)

Type:int

Parameter:

TypeParameterName
struct page *page
592  VM_BUG_ON_PAGE(page_ref_count(page) == 0, page)
593  Return page_ref_dec_and_test(page)
Caller
NameDescribe
release_pageslease_pages - batched put_page()*@pages: array of pages to release*@nr: number of pages* Decrement the reference count on all the pages in @pages. If it* fell to zero, remove the page from the LRU and free it.
shrink_page_listshrink_page_list() returns the number of reclaimed pages
move_pages_to_lruThis moves pages from @list to corresponding LRU list.* We move them the other way if the page is referenced by one or more* processes, from rmap.* If the pages are mostly unmapped, the processing is fast and it is
__free_pages
page_frag_freeFrees a page fragment allocated out of either a compound or order 0 page.
gather_surplus_pagesIncrease the hugetlb pool such that it can accommodate a reservation* of size 'delta'.
io_mem_free