Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:swap_cgroup_swapoff

Proto:void swap_cgroup_swapoff(int type)

Type:void

Parameter:

TypeParameterName
inttype
212  If Not Whether the swap controller is active Then Return
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  If map Then
224  When i < length cycle
225  page = map[i]
226  If page Then __free_page(page)
228  If Not (i % SWAP_CLUSTER_MAX) Then 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()
Caller
NameDescribe
SYSCALL_DEFINE2