函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\rdtgroup.c Create Date:2022-07-27 09:11:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:rdt_get_tree

函数原型:static int rdt_get_tree(struct fs_context *fc)

返回类型:int

参数:

类型参数名称
struct fs_context *fc
1946  ctx等于rdt_fc2context(fc)
1951  cpus_read_lock()
1952  mutex_lock( & Mutex to protect rdtgroup access. )
1956  如果static_branch_unlikely( & rdt_enable_key)则
1957  ret等于负EBUSY
1958  转到:out
1961  ret等于rdt_enable_ctx(ctx)
1962  如果ret小于0则转到:out_cdp
1965  closid_init()
1967  ret等于rdtgroup_create_info_dir(kn)
1968  如果ret小于0则转到:out_mba
1971  如果rdt_mon_capable
1972  ret等于mongroup_create_dir(kn, & rdtgroup_default, "mon_groups", & Kernel fs node for "mon_groups" directory under root )
1975  如果ret小于0则转到:out_info
1977  kernfs_get(Kernel fs node for "mon_groups" directory under root )
1979  ret等于This creates a directory mon_data which contains the monitored data
1981  如果ret小于0则转到:out_mongrp
1983  kernfs_get(Kernel fs node for "mon_data" directory under root )
1984  mon_data_kn等于Kernel fs node for "mon_data" directory under root
1987  ret等于rdt_pseudo_lock_init()
1988  如果ret则转到:out_mondata
1991  ret等于kernfs_get_tree(fc)
1992  如果ret小于0则转到:out_psl
1995  如果Global boolean for rdt_alloc which is true if any* resource allocation is enabled.static_branch_enable_cpuslocked( & rdt_alloc_enable_key)
1997  如果rdt_mon_capablestatic_branch_enable_cpuslocked( & rdt_mon_enable_key)
2000  如果Global boolean for rdt_alloc which is true if any* resource allocation is enabled.rdt_mon_capablestatic_branch_enable_cpuslocked( & rdt_enable_key)
2003  如果is_mbm_enabled()则
2004  r等于rdt_resources_all[RDT_RESOURCE_L3]
2005  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(dom, & domains, list)
2006  mbm_setup_overflow_handler(dom, MBM_OVERFLOW_INTERVAL)
2009  转到:out
2011  out_psl :
2012  rdt_pseudo_lock_release()
2013  out_mondata :
2014  如果rdt_mon_capablekernfs_remove(Kernel fs node for "mon_data" directory under root )
2016  out_mongrp :
2017  如果rdt_mon_capablekernfs_remove(Kernel fs node for "mon_groups" directory under root )
2019  out_info :
2020  kernfs_remove(Kernel fs node for "info" directory under root )
2021  out_mba :
2022  如果enable_mba_mbpsEnable or disable the MBA software controller* which helps user specify bandwidth in MBps.* MBA software controller is supported only if* MBM is supported and MBA is in linear scale.
2024  out_cdp :
2025  cdp_disable_all()
2026  out :
2027  rdt_last_cmd_clear()
2028  mutex_unlock( & Mutex to protect rdtgroup access. )
2029  cpus_read_unlock()
2030  返回:ret