Function report |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-28 11:17:18 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cpuset_css_online
Proto:static int cpuset_css_online(struct cgroup_subsys_state *css)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct cgroup_subsys_state * | css |
2729 | If Not parent Then Return 0 |
2732 | get_online_cpus() |
2733 | percpu_down_write( & cpuset_rwsem) |
2736 | If is_spread_page(parent) Then Atomically set a bit in memory |
2738 | If is_spread_slab(parent) Then Atomically set a bit in memory |
2741 | cpuset_inc() |
2743 | spin_lock_irq( & callback_lock) |
2746 | effective_mems = effective_mems |
2748 | child_ecpus_count++ |
2750 | spin_unlock_irq( & callback_lock) |
2752 | If Not st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Go to out_unlock |
2770 | If is_mem_exclusive(tmp_cs) || is_cpu_exclusive(tmp_cs) Then |
2777 | spin_lock_irq( & callback_lock) |
2778 | mems_allowed = mems_allowed |
2779 | effective_mems = mems_allowed |
2782 | spin_unlock_irq( & callback_lock) |
2783 | out_unlock : |
2784 | percpu_up_write( & cpuset_rwsem) |
2785 | put_online_cpus() |
2786 | Return 0 |
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 |