ls_sharedresourceinfo
Returns shared resource information in dynamic values.ls_sharedresourceinfo returns the requested shared resource information in dynamic values. The result of this call is a chained data structure as defined in <lsf/lsf.h>, which contains requested information.
#include <lsf/lsf.h>
lsSharedResourceInfo *ls_sharedresourceinfo(
char **resources,
int *numResources, char *hostName,
int options)
Data Structures: Define Statements:
- Parameters:
**resources resources is an array of NULL terminated strings storing requesting resource names. If set to NULL, the call returns all shared resources defined in the cluster. *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 number of resources. *hostName hostName is a string containing a host name. Only shared resource available on the specified host will be returned. If hostName is set to 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 lsSharedResourceInfo *:A list of lsSharedResourceInfo structure.
Function was successful.NULL
Function failed.Equivalent line commands:
- If the function fails, lserrno is set to indicate the error.
Files:
- none
- $LSF_CONFDIR/lsf.shared
$LSF_CONFDIR/lsf.cluster.cluster_name
- See also:
- none
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.