Home
last modified time | relevance | path

Searched defs:NetDeviceInterFace (Results 1 – 1 of 1) sorted by relevance

/ohos5.0/drivers/hdf_core/framework/include/net/
H A Dnet_device.h497 struct NetDeviceInterFace { struct
498 int32_t (*init)(struct NetDevice *netDev); /**< Initializes a network device to be added. */
499 void (*deInit)(struct NetDevice *netDev); /**< Deinitializes a network device to be delete. */
500 int32_t (*open)(struct NetDevice *netDev); /**< Opens the data link layer. */
501 int32_t (*stop)(struct NetDevice *netDev); /**< Closes the data link layer. */
502 NetDevTxResult (*xmit)(struct NetDevice *netDev, NetBuf *netBuff); /**< Sends data. */
504 …2_t (*setMacAddr)(struct NetDevice *netDev, void *addr); /**< Sets the MAC address. */
505 … NetDevStats *(*getStats)(struct NetDevice *netDev); /**< Obtains the statistics. */
507 … (*selectQueue)(struct NetDevice *netDev, NetBuf *netBuff); /**< Selects a priority queue. */
512 void (*linkStatusChanged)(struct NetDevice *netDev); /**< Detects the change of
[all …]