Re: ttydev_cdevsw has no d_purge

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Thu, 02 Aug 2012 12:00:47 +0000
In message <CAJOYFBBbskRbXjKZdv-JgHi4vJgW0S0N2DGvZgm5_oDWcY65ig_at_mail.gmail.com>
, Ed Schouten writes:
>2012/8/2 Julian Elischer <julian_at_freebsd.org>:

TTYs are used *two* ways:  As terminals and as comms to the real world.

If a terminal-tty disappears, it should be handled like a HUP would
be, analytically it is the exact same situation as a carrier drop
on a modem.  The implementation may need to do tricky stuff, but the
result should be exactly like a HUP seen from userland.

If a comms-tty disappears, it should be handled like any other
disappearing device: ENXIO.


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_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.
Received on Thu Aug 02 2012 - 10:00:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:29 UTC