From 8ec410b54ad14f746e9ecdafbd29449a91beab86 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Tue, 2 Oct 2001 18:08:34 +0000 Subject: [PATCH] Documentation comment: note that the each NIC's softc is assumed to start with an ifnet structure. MFC after: 1 week --- sys/net/if_var.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/net/if_var.h b/sys/net/if_var.h index 0d6979126c05..b3d4900b2127 100644 --- a/sys/net/if_var.h +++ b/sys/net/if_var.h @@ -105,6 +105,11 @@ struct ifqueue { * * (Would like to call this struct ``if'', but C isn't PL/1.) */ + +/* + * NB: For FreeBSD, it is assumed that each NIC driver's softc starts with + * one of these structures, typically held within an arpcom structure. + */ struct ifnet { void *if_softc; /* pointer to driver state */ char *if_name; /* name, e.g. ``en'' or ``lo'' */