函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\topology.c Create Date:2022-07-27 10:42:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:rq_attach_root

函数原型:void rq_attach_root(struct rq *rq, struct root_domain *rd)

返回类型:void

参数:

类型参数名称
struct rq *rq
struct root_domain *rd
442  struct root_domain * old_rd = NULL
445  raw_spin_lock_irqsave( & 运行队列锁, flags)
447  如果rd
448  old_rd等于rd
450  如果测试CPU信息set_rq_offline(rq)
453  清空CPU信息
460  如果非atomic_dec_and_test( & refcount)则old_rd = NULL
464  atomic_inc( & refcount)
465  rd等于rd
467  设置CPU信息
468  如果测试CPU信息set_rq_online(rq)
471  raw_spin_unlock_irqrestore( & 运行队列锁, flags)
473  如果old_rdPost 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.
调用者
名称描述
cpu_attach_domainAttach the domain 'sd' to 'cpu' as its base domain. Callers must* hold the hotplug lock.