函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\ksm.c Create Date:2022-07-27 17:15:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__ksm_exit

函数原型:void __ksm_exit(struct mm_struct *mm)

返回类型:void

参数:

类型参数名称
struct mm_struct *mm
2525  easy_to_free等于0
2536  加自旋锁
2537  mm_slot等于get_mm_slot(mm)
2538  如果mm_slotmm_slot不等于mm_slot
2539  如果非rmap_list
2542  easy_to_free等于1
2543  否则
2548  自旋锁解锁
2550  如果easy_to_free
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  否则如果mm_slot
2555  lock for writing
2556  lease a write lock