Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__khugepaged_exit

Proto:void __khugepaged_exit(struct mm_struct *mm)

Type:void

Parameter:

TypeParameterName
struct mm_struct *mm
487  free = 0
489  spin_lock( & khugepaged_mm_lock)
490  mm_slot = get_mm_slot(mm)
491  If mm_slot && mm_slot != mm_slot Then
492  hash_del - remove an object from a hashtable*@node: &struct hlist_node of the object to remove
493  deletes entry from list
494  free = 1
496  spin_unlock( & khugepaged_mm_lock)
498  If free Then
499  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
500  free_mm_slot(mm_slot)
501  mmdrop(mm)
502  Else if mm_slot Then
511  lock for writing
512  lease a write lock