Files
@ d0a14f973771
Branch filter:
Location: vmkdrivers/BLD/build/HEADERS/vmkapi-current-all-public/vmkernel64/release/net/vmkapi_net_uplink.h
d0a14f973771
3.5 KiB
text/x-chdr
ESXi-5.0-U1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | /* **********************************************************
* Copyright 2006 - 2010 VMware, Inc. All rights reserved.
* **********************************************************/
/*
* @VMKAPIMOD_LICENSE@
*/
/*
***********************************************************************
* Uplink */ /**
* \addtogroup Network
*@{
* \defgroup Uplink Uplink management
*@{
*
* In VMkernel, uplinks are physical NICs, also known as `pNics'. They
* provide external connectivity.
*
***********************************************************************
*/
#ifndef _VMKAPI_NET_UPLINK_H_
#define _VMKAPI_NET_UPLINK_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 */
/**
* \brief Uplink handle
*
* vmk_Uplink is used as a handle to perform operations on uplink devices.
*
*/
typedef struct UplinkDev * vmk_Uplink;
/*
***********************************************************************
* vmk_UplinkIoctl -- */ /**
*
* \brief Do an ioctl call against the uplink.
*
* This function will call down to device driver to perform an ioctl.
*
* \note The caller must not hold any lock.
*
* \note The behavior of the ioctl callback is under the responsibility
* of the driver. The VMkernel cannot guarantee binary compatibility or
* system stability over this call. It is up to the API user to ensure
* version-to-version compatibility of ioctl calls with the provider of
* the driver.
*
* \param[in] uplink Uplink handle
* \param[in] cmd Ioctl command
* \param[in] args Ioctl arguments
* \param[out] result Ioctl result
*
* \retval VMK_OK If the ioctl call succeeds
* \retval VMK_NOT_SUPPORTED If the uplink doesn't support ioctl
* \retval Other status If the device ioctl call failed
***********************************************************************
*/
VMK_ReturnStatus vmk_UplinkIoctl(vmk_Uplink uplink,
vmk_uint32 cmd,
void *args,
vmk_uint32 *result);
/*
***********************************************************************
* vmk_UplinkReset -- */ /**
*
* \brief Reset the uplink device underneath.
*
* This function will call down to device driver, close and re-open the
* device. The link state will consequently go down and up.
*
* \note The caller must not hold any lock.
*
* \note The behavior of the reset callback is under the responsibility
* of the driver. The VMkernel cannot guarantee binary compatibility or
* system stability over this call. It is up to the API user to ensure
* version-to-version compatibility of the reset call with the provider of
* the driver.
*
* \note This call is asynchronous, the function might return before
* the driver call completed.
*
* \param[in] uplink Uplink handle
*
* \retval VMK_OK if the reset call succeeds
* \retval VMK_NOT_SUPPORTED if the uplink doesn't support reset
* \retval Other status if the device reset call failed
***********************************************************************
*/
VMK_ReturnStatus vmk_UplinkReset(vmk_Uplink uplink);
#endif /* _VMKAPI_NET_UPLINK_H_ */
/** @} */
/** @} */
|