Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Aug 2012 21:13:46 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        Ed Schouten <ed@80386.nl>, current@freebsd.org, hselasky@freebsd.org
Subject:   Re: ttydev_cdevsw has no d_purge
Message-ID:  <76407.1343855626@critter.freebsd.dk>
In-Reply-To: Your message of "Thu, 02 Aug 2012 00:02:10 %2B0300." <20120801210210.GU2676@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20120801210210.GU2676@deviant.kiev.zoral.com.ua>, Konstantin Belous
ov writes:

>> I guess d_purge was added quite recently, right?
>
>No, it was there at least in 2006. In fact, it seems to be added in 2004,
>see r135843.

Ahh yes, I remember that one :-)

It was added so that when PCMCIA cards (anyone remember those ?)
were pulled out, ppp(8) and tip(1) would not stay stuck forever.

Today all devices drivers should assume that the hardware can disappear
under their feet.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?76407.1343855626>