net: move the tool interface functions to the public directory

expose the query interface of the network card to the network card
driver so that the network card driver can support more features.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu
2026-01-16 09:42:01 +08:00
committed by Xiang Xiao
parent 1f48d4d940
commit 4ce3dac146
2 changed files with 35 additions and 35 deletions
-35
View File
@@ -106,23 +106,6 @@ typedef int (*netdev_callback_t)(FAR struct net_driver_s *dev,
bool netdev_verify(FAR struct net_driver_s *dev);
/****************************************************************************
* Name: netdev_findbyname
*
* Description:
* Find a previously registered network device using its assigned
* network interface name
*
* Input Parameters:
* ifname The interface name of the device of interest
*
* Returned Value:
* Pointer to driver on success; null on failure
*
****************************************************************************/
FAR struct net_driver_s *netdev_findbyname(FAR const char *ifname);
/****************************************************************************
* Name: netdev_foreach
*
@@ -241,24 +224,6 @@ FAR struct net_driver_s *netdev_findby_ripv6addr(
const net_ipv6addr_t ripaddr);
#endif
/****************************************************************************
* Name: netdev_findbyindex
*
* Description:
* Find a previously registered network device by assigned interface index.
*
* Input Parameters:
* ifindex - The interface index. This is a one-based index and must be
* greater than zero.
*
* Returned Value:
* Pointer to driver on success; NULL on failure. This function will return
* NULL only if there is no device corresponding to the provided index.
*
****************************************************************************/
FAR struct net_driver_s *netdev_findbyindex(int ifindex);
/****************************************************************************
* Name: netdev_nextindex
*