Function report |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-28 11:16:34 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static int update_cpumask(struct cpuset *cs, struct cpuset *trialcs, const char *buf)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct cpuset * | cs | |
struct cpuset * | trialcs | |
const char * | buf |
1481 | If cs == top_cpuset Then Return -EACCES |
1490 | If Not buf Then |
1492 | Else |
1503 | If pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input Then Return 0 |
1506 | retval = validate_change() - Used to validate that any proposed cpuset change* follows the structural rules for cpusets |
1520 | If partition root state Then |
1529 | spin_lock_irq( & callback_lock) |
1535 | If number of CPUs in subparts_cpus Then |
1540 | spin_unlock_irq( & callback_lock) |
1544 | If partition root state Then |
1554 | Return 0 |
Name | Describe |
---|---|
cpuset_write_resmask | Common handling for a write to a "cpus" or "mems" file. |
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 |