函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mm.h Create Date:2022-07-27 06:44:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Drop a ref, return true if the refcount fell to zero (the page has no users)

函数原型:static inline int put_page_testzero(struct page *page)

返回类型:int

参数:

类型参数名称
struct page *page
592  VM_BUG_ON_PAGE(page_ref_count(page) == 0, page)
593  返回:page_ref_dec_and_test(page)
调用者
名称描述
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
put_page