* This function will get the family type from network interface device * * @param netdev network interface device object * * @return the network interface device family type */
| 426 | * @return the network interface device family type |
| 427 | */ |
| 428 | int 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 |
no outgoing calls