Function report | 
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 activity | Download SCCT | Chinese | 
Name:cpuset_write_u64
Proto:static int cpuset_write_u64(struct cgroup_subsys_state *css, struct cftype *cft, u64 val)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct cgroup_subsys_state * | css | |
| struct cftype * | cft | |
| u64 | val | 
| 2256 | retval = 0 | 
| 2258 | get_online_cpus() | 
| 2259 | percpu_down_write( & cpuset_rwsem) | 
| 2260 | If Not venient tests for these bits Then | 
| 2262 | Go to out_unlock | 
| 2266 | Case type == FILE_CPU_EXCLUSIVE | 
| 2267 | retval = pdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held. | 
| 2268 | Break | 
| 2269 | Case type == FILE_MEM_EXCLUSIVE | 
| 2270 | retval = pdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held. | 
| 2271 | Break | 
| 2272 | Case type == FILE_MEM_HARDWALL | 
| 2273 | retval = pdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held. | 
| 2274 | Break | 
| 2275 | Case type == FILE_SCHED_LOAD_BALANCE | 
| 2276 | retval = pdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held. | 
| 2277 | Break | 
| 2278 | Case type == FILE_MEMORY_MIGRATE | 
| 2279 | retval = pdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held. | 
| 2280 | Break | 
| 2281 | Case type == FILE_MEMORY_PRESSURE_ENABLED | 
| 2282 | cpuset_memory_pressure_enabled = Not Not val | 
| 2283 | Break | 
| 2284 | Case type == FILE_SPREAD_PAGE | 
| 2285 | retval = pdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held. | 
| 2286 | Break | 
| 2287 | Case type == FILE_SPREAD_SLAB | 
| 2288 | retval = pdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held. | 
| 2289 | Break | 
| 2290 | Default | 
| 2294 | out_unlock : | 
| 2295 | percpu_up_write( & cpuset_rwsem) | 
| 2296 | put_online_cpus() | 
| 2297 | Return retval | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |