I was poking around in various nic drivers and I noticed that several of them have what seems to be an odd idiom in their generic attach functions. For instance in sys/dev/ed/if_ed.c in ed_attach(), filling in the interface fields and attaching the interface is protected by and "if (!ifp->if_name)". Can someone explain why this is being done? It doesn't seem to make any sense that this could get called twice for the same device (after all you only attach once).
-- Brooks -- Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
msg35934/pgp00000.pgp
Description: PGP signature