Subject: Re: if_delete * if_alloc
To: Matt Thomas <matt@3am-software.com>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-kern
Date: 07/08/1997 23:53:06
On Tue, 08 Jul 1997 21:47:00 -0400 
 Matt Thomas <matt@3am-software.com> wrote:

 > I can see if_delete for slip/ppp/tun/* but not real ethernet hardware
 > which will be known at boot time.  (unless we want to LKM's.)

Not necessarily... c.f. pcmcia devices... hot swap in and hot swap out.

You want to be able to completely release everything at "pop out" time,
but just can't release ifnets until all of the pkthdr mbufs that reference
it are gone.

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939