Changeset 637 for trunk/kernel/kern/cluster.h
- Timestamp:
- Jul 18, 2019, 2:06:55 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/cluster.h
r635 r637 4 4 * authors Ghassan Almaless (2008,2009,2010,2011,2012) 5 5 * Mohamed Lamine Karaoui (2015) 6 * Alain Greiner (2016,2017,2018 )6 * Alain Greiner (2016,2017,2018,2019) 7 7 * 8 8 * Copyright (c) UPMC Sorbonne Universites … … 112 112 uint32_t nb_fbf_channels; /*! number of FBF channels */ 113 113 114 char cluster_info[CONFIG_MAX_CLUSTERS_X][CONFIG_MAX_CLUSTERS_Y]; 114 // number of cores for each cluster in the mesh 115 uint8_t cluster_info[CONFIG_MAX_CLUSTERS_X][CONFIG_MAX_CLUSTERS_Y]; 115 116 116 117 // local parameters … … 162 163 * in the local boot-info structure <info> build by the boot-loader. 163 164 * 1) the cluster_info_init() function is called first, to initialize the structural 164 * constants, and cannot use the TXT0 kernel terminal. 165 * 2) the cluster_manager_init() function initialize various complex structures: 165 * constants, including the cluster_info[x][y] array. 166 * It cannot use the TXT0 kernel terminal. 167 * 2) the cluster_manager_init() function initializes various complex structures: 166 168 * - the local DQDT nodes, 167 169 * - the PPM, KHM, and KCM allocators, … … 169 171 * - the local RPC FIFO, 170 172 * - the process manager. 171 * It does NOT initialise the local device descriptors.172 173 * It can use the TXT0 kernel terminal. 173 174 ****************************************************************************************** … … 178 179 179 180 /****************************************************************************************** 180 * This function checks the validity of a cluster identifier. 181 ****************************************************************************************** 182 * @ cxy : cluster identifier to be checked. 183 * @ returns true if the identified cluster does not exist. 184 *****************************************************************************************/ 185 bool_t cluster_is_undefined( cxy_t cxy ); 186 187 /****************************************************************************************** 188 * This function uses the local cluster_info[][] array in cluster descriptor, 189 * and returns true when the cluster identified by the <cxy> argument is active. 190 ****************************************************************************************** 191 * @ cxy : cluster identifier. 181 * This debug function displays the current values stored in the cluster_info[][] array 182 * of a remote cluster identified by the <cxy> argument. 183 * It can be called by a thread running in any cluster. 184 ****************************************************************************************** 185 * @ cxy : remote cluster identifier. 186 *****************************************************************************************/ 187 void cluster_info_display( cxy_t cxy ); 188 189 /****************************************************************************************** 190 * This function access the local cluster_info[][] array and returns true when the 191 * cluster identified by the <cxy> argument is active (contains a kernel instance). 192 ****************************************************************************************** 193 * @ cxy : checked cluster identifier. 192 194 * @ return true if cluster contains a kernel instance. 193 195 *****************************************************************************************/ … … 300 302 * This function displays on the kernel terminal TXT0 all user processes registered 301 303 * in the cluster defined by the <cxy> argument. 302 * It can be called by a thread running in any cluster, because is use remote accesses 303 * to scan the xlist of registered processes. 304 * It can be called by a thread running in any cluster. 304 305 ****************************************************************************************** 305 306 * @ cxy : cluster identifier. … … 310 311 311 312 /****************************************************************************************** 312 * This function uses the local boot_inforeturns the core local index that has the lowest usage in local cluster. 313 *****************************************************************************************/ 314 lid_t cluster_select_local_core( void ); 313 * This function selects the core that has the lowest usage in a - possibly remote - 314 * cluster identified by the <cxy> argument. 315 * It can be called by a thread running in any cluster. 316 ****************************************************************************************** 317 * @ cxy : target cluster identifier. 318 * @ return the selected core local index. 319 *****************************************************************************************/ 320 lid_t cluster_select_local_core( cxy_t cxy ); 315 321 316 322
Note: See TracChangeset
for help on using the changeset viewer.