2005-03-14 20:57:21 +00:00
|
|
|
/*
|
2005-11-05 19:57:48 +00:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2005-03-14 20:57:21 +00:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 12:43:37 +00:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2005-03-14 20:57:21 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "orte_config.h"
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "orte/orte_constants.h"
|
2005-03-14 20:57:21 +00:00
|
|
|
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "opal/mca/mca.h"
|
|
|
|
#include "opal/mca/base/base.h"
|
2006-09-14 21:29:51 +00:00
|
|
|
|
|
|
|
#include "orte/mca/rds/base/rds_private.h"
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "orte/mca/rds/base/base.h"
|
2005-03-14 20:57:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Function for querying all loaded components.
|
|
|
|
*/
|
|
|
|
int orte_rds_base_query(void)
|
|
|
|
{
|
2005-07-03 16:22:16 +00:00
|
|
|
opal_list_item_t* item;
|
2005-09-10 08:01:47 +00:00
|
|
|
|
2005-03-14 20:57:21 +00:00
|
|
|
/* Query all selected modules */
|
2005-07-03 16:22:16 +00:00
|
|
|
for(item = opal_list_get_first(&orte_rds_base.rds_selected);
|
|
|
|
item != opal_list_get_end(&orte_rds_base.rds_selected);
|
|
|
|
item = opal_list_get_next(item)) {
|
2005-03-14 20:57:21 +00:00
|
|
|
orte_rds_base_selected_t* selected = (orte_rds_base_selected_t*)item;
|
|
|
|
int rc = selected->module->query();
|
|
|
|
if(rc != ORTE_SUCCESS)
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
return ORTE_SUCCESS;
|
|
|
|
}
|
|
|
|
|