Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mem_cgroup_swappiness_write

Proto:static int mem_cgroup_swappiness_write(struct cgroup_subsys_state *css, struct cftype *cft, u64 val)

Type:int

Parameter:

TypeParameterName
struct cgroup_subsys_state *css
struct cftype *cft
u64val
3821  memcg = mem_cgroup_from_css(css)
3823  If val > 100 Then Return -EINVAL
3826  If PI: the parent css. Placed here for cache proximity to following* fields of the containing structure. Then swappiness = val
3828  Else From 0 .. 100. Higher means more swappy. = val
3831  Return 0