* Interfaces to keep an ifnet type-stable despite the possibility of the * driver calling if_free(). If there are additional references, we defer * freeing the underlying data structure. */
| 736 | * freeing the underlying data structure. |
| 737 | */ |
| 738 | void |
| 739 | if_ref(struct ifnet *ifp) |
| 740 | { |
| 741 | |
| 742 | /* We don't assert the ifnet list lock here, but arguably should. */ |
| 743 | refcount_acquire(&ifp->if_refcount); |
| 744 | } |
| 745 | |
| 746 | void |
| 747 | if_rele(struct ifnet *ifp) |
no test coverage detected