Function report |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-28 11:17:05 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Common handling for a write to a "cpus" or "mems" file.
Proto:static ssize_t cpuset_write_resmask(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct kernfs_open_file * | of | |
char * | buf | |
size_t | nbytes | |
loff_t | off |
2361 | get_online_cpus() |
2362 | percpu_down_write( & cpuset_rwsem) |
2363 | If Not venient tests for these bits Then Go to out_unlock |
2366 | trialcs = alloc_trial_cpuset - allocate a trial cpuset*@cs: the cpuset that the trial cpuset duplicates |
2367 | If Not trialcs Then |
2369 | Go to out_unlock |
2373 | Case private == FILE_CPULIST |
2374 | retval = pdate_cpumask - update the cpus_allowed mask of a cpuset and all tasks in it*@cs: the cpuset to consider*@trialcs: trial cpuset*@buf: buffer of cpu numbers written to this cpuset |
2375 | Break |
2376 | Case private == FILE_MEMLIST |
2378 | Break |
2379 | Default |
2385 | out_unlock : |
2386 | percpu_up_write( & cpuset_rwsem) |
2387 | put_online_cpus() |
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 |