Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__ksm_exit

Proto:void __ksm_exit(struct mm_struct *mm)

Type:void

Parameter:

TypeParameterName
struct mm_struct *mm
2525  easy_to_free = 0
2536  spin_lock( & ksm_mmlist_lock)
2537  mm_slot = get_mm_slot(mm)
2538  If mm_slot && mm_slot != mm_slot Then
2539  If Not rmap_list Then
2542  easy_to_free = 1
2543  Else
2548  spin_unlock( & ksm_mmlist_lock)
2550  If easy_to_free Then
2551  free_mm_slot(mm_slot)
2552  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).
2553  mmdrop(mm)
2554  Else if mm_slot Then
2555  lock for writing
2556  lease a write lock