Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:free_pages_work

Proto:static void free_pages_work(struct work_struct *w)

Type:void

Parameter:

TypeParameterName
struct work_struct *w
593  pool = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(w, structz3fold_pool, work)
595  spin_lock( & stale_lock)
596  When Not list_empty - tests whether a list is empty*@head: the list to test. cycle
597  zhdr = 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.( & stale, structz3fold_header, buddy)
599  page = virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(zhdr)
601  deletes entry from list
602  If WARN_ON(!st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from) Then Continue
604  spin_unlock( & stale_lock)
605  ancel_work_sync - cancel a work and wait for it to finish*@work: the work to cancel* Cancel @work and wait for its execution to finish. This function* can be used even if the work re-queues itself or migrates to* another workqueue
606  Resets the struct page fields and frees the page
607  cond_resched()
608  spin_lock( & stale_lock)
610  spin_unlock( & stale_lock)