lsb_sharedresourceinfo
Returns the requested shared resource information in dynamic values.lsb_sharedresourceinfo returns the requested shared resource information in dynamic values. The result of this call is a chained data structure as defined in <lsf/lsbatch.h>, which contains requested information.
#include <lsf/lsbatch.h>
LSB_SHARED_RESOURCE_INFO_T *lsb_sharedresourceinfo( char **resources, int *numResources, char *hostName, int options)
Data Structures: Define Statements:
- Parameters:
**resources resources is an NULL terminated string array storing requesting resource names.Setting resources to point to NULL returns all shared resources. *numResources numResources is an input/output parameter. On input it indicates how many resources are requested. Value 0 means requesting all shared resources. On return it contains qualified resource number. *hostName hostName is a string containing a host name. Only shared resource available on the specified host will be returned. If hostName is a NULL, shared resource available on all hosts will be returned. options options is reserved for future use. Currently, it should be set to 0.
- none
Errors:
- Returns:
- struct lsbSharedResourceInfo *:
A pointer to an LSB_SHARED_RESOURCE_INFO_T structure, which contains complete shared resource information.
Function was successful.NULL
Function failed.Equivalent line commands:
- If the function fails, lsberrno is set to indicate the error.
Files:
- none
- $LSF_CONFDIR/lsf.shared
$LSF_CONFDIR/lsf.cluster.cluster_name
- See also:
- ls_sharedresourceinfo
Date Modified: 16 Jul 2014
Terms of Use
Copyright © 1994-2014 International Business Machines Corp.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.