vmkdrivers/BLD/build/HEADERS/vmkapi-current-all-public/vmkernel64/release/base/vmkapi_config.h

186 lines
5.8 KiB
C
Raw Normal View History

2015-10-23 19:21:55 +00:00
/* **********************************************************
* Copyright 2008 - 2009 VMware, Inc. All rights reserved.
* **********************************************************/
/*
* @VMKAPIMOD_LICENSE@
*/
/*
***********************************************************************
* Configuration */ /**
* \defgroup Configuration Configuration Options
2015-10-23 19:48:45 +00:00
*
2015-10-23 19:21:55 +00:00
* The configuration option interface allows access to kernel
* configuration options set by the user.
*
* @{
***********************************************************************
*/
#ifndef _VMKAPI_CONFIG_H_
#define _VMKAPI_CONFIG_H_
/** \cond never */
#ifndef VMK_HEADER_INCLUDED_FROM_VMKAPI_H
#error This vmkapi file should never be included directly but only via vmkapi.h
#endif
/** \endcond never */
/*
* Useful configuration group and parameter names
*/
/** \brief Misc parameter group name */
#define VMK_CONFIG_GROUP_MISC "Misc"
/** \brief Disk parameter group name */
#define VMK_CONFIG_GROUP_DISK "Disk"
/** \brief Scsi parameter group name */
#define VMK_CONFIG_GROUP_SCSI "Scsi"
2015-10-23 19:48:45 +00:00
/** \brief Net parameter group name */
2015-10-23 19:21:55 +00:00
#define VMK_CONFIG_GROUP_NET "Net"
2015-10-23 19:48:45 +00:00
/** \brief Nmp parameter group name */
#define VMK_CONFIG_GROUP_NMP "Nmp"
2015-10-23 19:21:55 +00:00
/** \brief Host Name parameter name */
#define VMK_CONFIG_PARAM_HOSTNAME "HostName"
/** \brief Host IP Address parameter name */
#define VMK_CONFIG_PARAM_MGMT_IPADDR "ManagementAddr"
/**
* \brief Opaque handle to a configuration parameter.
*/
typedef vmk_uint64 vmk_ConfigParamHandle;
/*
***********************************************************************
* vmk_ConfigParamOpen -- */ /**
*
* \ingroup Configuration
* \brief Open a handle to a configuration parameter.
*
2015-10-23 19:48:45 +00:00
* \note This function will not block.
*
* \param[in] groupName A functional group name associated with
2015-10-23 19:21:55 +00:00
* configuration parameter.
* \param[in] paramName A parameter name.
* \param[out] handle Handle to the configuration parameter.
*
2015-10-23 19:48:45 +00:00
* \retval VMK_BAD_PARAM The group name or configuration parameter
2015-10-23 19:21:55 +00:00
* name was invalid.
*
***********************************************************************
*/
VMK_ReturnStatus vmk_ConfigParamOpen(
const char *groupName,
2015-10-23 19:48:45 +00:00
const char *paramName,
2015-10-23 19:21:55 +00:00
vmk_ConfigParamHandle *handle);
/*
***********************************************************************
* vmk_ConfigParamClose -- */ /**
*
* \ingroup Configuration
* \brief Close a handle to a configuration parameter.
*
2015-10-23 19:48:45 +00:00
* \note This function will not block.
*
2015-10-23 19:21:55 +00:00
* \param[in] handle Handle to the configuration parameter.
*
* \retval VMK_BAD_PARAM The configuration handle was invalid
*
***********************************************************************
*/
VMK_ReturnStatus vmk_ConfigParamClose(
vmk_ConfigParamHandle handle);
/*
***********************************************************************
* vmk_ConfigParamGetUint -- */ /**
*
* \ingroup Configuration
* \brief Get an UInt value associated with a configuration parameter
* handle.
*
2015-10-23 19:48:45 +00:00
* \note This function will not block.
*
2015-10-23 19:21:55 +00:00
* \param[in] handle Handle to the configuration parameter.
2015-10-23 19:48:45 +00:00
* \param[out] value unsigned integer value associated with
2015-10-23 19:21:55 +00:00
* configuration parameter handle.
*
* \retval VMK_BAD_PARAM Invalid handle or there is no unsigned.
* integer value associated with the handle.
*
***********************************************************************
*/
VMK_ReturnStatus vmk_ConfigParamGetUint(
vmk_ConfigParamHandle handle,
unsigned *value);
/*
***********************************************************************
* vmk_ConfigParamGetStringSize -- */ /**
*
* \ingroup Configuration
2015-10-23 19:48:45 +00:00
* \brief Get size of a buffer required to hold string value associated
2015-10-23 19:21:55 +00:00
* with a configuration parameter handle.
*
2015-10-23 19:48:45 +00:00
* \note This function will not block.
*
2015-10-23 19:21:55 +00:00
* \param[in] handle Handle to the configuration parameter.
* \param[out] size Size of the buffer required to hold
* string value (including terminating nul)
* associated with configuration parameter
* handle.
*
2015-10-23 19:48:45 +00:00
* \retval VMK_BAD_PARAM Invalid handle or there is no string value
2015-10-23 19:21:55 +00:00
* associated with the handle
*
***********************************************************************
*/
VMK_ReturnStatus vmk_ConfigParamGetStringSize(
vmk_ConfigParamHandle handle,
2015-10-23 19:48:45 +00:00
vmk_ByteCount *size);
2015-10-23 19:21:55 +00:00
/*
***********************************************************************
* vmk_ConfigParamGetString -- */ /**
*
* \ingroup Configuration
* \brief Get a string value associated with a configuration parameter
* handle.
*
2015-10-23 19:48:45 +00:00
* \note This function will not block.
*
2015-10-23 19:21:55 +00:00
* \param[in] handle Handle to the configuration parameter
* \param[out] value Location for a value associated with
* configuration parameter handle to be
* copied to.
* \param[in] size Size of the buffer in bytes. The buffer
* should have enough room for a terminating
* nul.
*
* \retval VMK_BAD_PARAM Invalid handle or there is no
* string value associated with the
* handle.
*
***********************************************************************
*/
VMK_ReturnStatus vmk_ConfigParamGetString(
vmk_ConfigParamHandle handle,
2015-10-23 19:48:45 +00:00
char *value,
vmk_ByteCount size);
2015-10-23 19:21:55 +00:00
#endif
/** @} */