函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:swap_cgroup_swapoff

函数原型:void swap_cgroup_swapoff(int type)

返回类型:void

参数:

类型参数名称
inttype
212  如果非Whether the swap controller is active 则返回
215  mutex_lock( & swap_cgroup_mutex)
216  ctrl等于swap_cgroup_ctrl[type]
217  map等于map
218  length等于length
219  map = NULL
220  length等于0
221  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
223  如果map
224 i小于length循环
225  page等于map[i]
226  如果page__free_page(page)
228  如果非iSWAP_CLUSTER_MAX的模则cond_resched()
231  vfree - release memory allocated by vmalloc()*@addr: memory base address* Free the virtually continuous memory area starting at @addr, as* obtained from vmalloc(), vmalloc_32() or __vmalloc()
调用者
名称描述
SYSCALL_DEFINE2
SYSCALL_DEFINE1