MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / netdev_family_get

Function netdev_family_get

components/net/netdev/src/netdev.c:428–433  ·  view source on GitHub ↗

* This function will get the family type from network interface device * * @param netdev network interface device object * * @return the network interface device family type */

Source from the content-addressed store, hash-verified

426 * @return the network interface device family type
427 */
428int netdev_family_get(struct netdev *netdev)
429{
430 RT_ASSERT(netdev);
431
432 return ((struct sal_proto_family *)netdev->sal_user_data)->family;
433}
434
435#endif /* RT_USING_SAL */
436

Callers 2

alloc_socketFunction · 0.85

Calls

no outgoing calls

Tested by 1