Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:free_unref_page_commit

Proto:static void free_unref_page_commit(struct page *page, unsigned long pfn)

Type:void

Parameter:

TypeParameterName
struct page *page
unsigned longpfn
3021  zone = page_zone(page)
3025  migratetype = A cached value of the page's pageblock's migratetype, used when the page is* put on a pcplist
3026  __count_vm_event(PGFREE)
3035  If migratetype >= MIGRATE_PCPTYPES Then
3038  Return
3040  migratetype = MIGRATE_MOVABLE
3043  pcp = & ({
3043  0
3043  ({
3043  Do
3043  const void * __vpp_verify = NULL
3043  When 0 cycle
3043  pageset
3043  })
3043  })->pcp
3044  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
3045  number of pages in the list ++
3046  If number of pages in the list >= high watermark, emptying needed Then
3047  batch = READ_ONCE( chunk size for buddy add/remove )
3048  Frees a number of pages from the PCP lists* Assumes all pages on list are in same zone, and of same order.* count is the number of pages to free.* If the zone was previously in an "all pages pinned" state then look to
Caller
NameDescribe
free_unref_pageFree a 0-order page
free_unref_page_listFree a list of 0-order pages