Function report |
Source Code:kernel\sched\topology.c |
Create Date:2022-07-28 09:41:48 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:rq_attach_root
Proto:void rq_attach_root(struct rq *rq, struct root_domain *rd)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct rq * | rq | |
| struct root_domain * | rd |
| 442 | struct root_domain * old_rd = NULL |
| 445 | raw_spin_lock_irqsave( & runqueue lock: , flags) |
| 447 | If rd Then |
| 450 | If pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then set_rq_offline(rq) |
| 460 | If Not atomic_dec_and_test( & refcount) Then old_rd = NULL |
| 464 | atomic_inc( & refcount) |
| 467 | pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer |
| 468 | If pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then set_rq_online(rq) |
| 471 | raw_spin_unlock_irqrestore( & runqueue lock: , flags) |
| 473 | If old_rd Then Post an RCU callback to be invoked after the end of an RCU grace* period. But since we have but one CPU, that would be after any* quiescent state. |
| Name | Describe |
|---|---|
| cpu_attach_domain | Attach the domain 'sd' to 'cpu' as its base domain. Callers must* hold the hotplug lock. |
| 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 |