Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:rq_attach_root

Proto:void rq_attach_root(struct rq *rq, struct root_domain *rd)

Type:void

Parameter:

TypeParameterName
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
448  old_rd = rd
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)
453  pumask_clear_cpu - clear a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
460  If Not atomic_dec_and_test( & refcount) Then old_rd = NULL
464  atomic_inc( & refcount)
465  rd = rd
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.
Caller
NameDescribe
cpu_attach_domainAttach the domain 'sd' to 'cpu' as its base domain. Callers must* hold the hotplug lock.