Function report |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-28 11:16:43 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Handle user request to change the 'mems' memory placement* of a cpuset
Proto:static int update_nodemask(struct cpuset *cs, struct cpuset *trialcs, const char *buf)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cpuset * | cs | |
| struct cpuset * | trialcs | |
| const char * | buf |
| 1771 | If cs == top_cpuset Then |
| 1782 | If Not buf Then |
| 1783 | nodes_clear(mems_allowed) |
| 1784 | Else |
| 1785 | retval = nodelist_parse(buf, mems_allowed) |
| 1789 | If Not nodes_subset(mems_allowed, mems_allowed) Then |
| 1796 | If nodes_equal(mems_allowed, mems_allowed) Then |
| 1800 | retval = validate_change() - Used to validate that any proposed cpuset change* follows the structural rules for cpusets |
| 1804 | spin_lock_irq( & callback_lock) |
| 1805 | mems_allowed = mems_allowed |
| 1806 | spin_unlock_irq( & callback_lock) |
| 1810 | done : |
| 1811 | Return retval |
| 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 |