Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cpuset_write_u64

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

Type:int

Parameter:

TypeParameterName
struct cgroup_subsys_state *css
struct cftype *cft
u64val
2254  cs = css_cs(css)
2255  type = private
2256  retval = 0
2258  get_online_cpus()
2259  percpu_down_write( & cpuset_rwsem)
2260  If Not venient tests for these bits Then
2261  retval = -ENODEV
2262  Go to out_unlock
2266  Case type == FILE_CPU_EXCLUSIVE
2268  Break
2269  Case type == FILE_MEM_EXCLUSIVE
2271  Break
2272  Case type == FILE_MEM_HARDWALL
2274  Break
2275  Case type == FILE_SCHED_LOAD_BALANCE
2277  Break
2278  Case type == FILE_MEMORY_MIGRATE
2280  Break
2283  Break
2284  Case type == FILE_SPREAD_PAGE
2286  Break
2287  Case type == FILE_SPREAD_SLAB
2289  Break
2290  Default
2291  retval = -EINVAL
2292  Break
2294  out_unlock :
2295  percpu_up_write( & cpuset_rwsem)
2296  put_online_cpus()
2297  Return retval