lkml.org 
[lkml]   [1999]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: RFC: Devices, buses and hotplug
Hi,

Ingo Oeser writes:

> The thing is, that a fd is valid from sucessful open to
> sucessful close. So everything this fd depends on, is open too.
>
> But we could introduce a new signal (bad, since not POSIX), or
> use a new semantic for an existing one (even worse) to say "Hey,
> this fd is dead now! Any use from now on will cause errors."

We already have support for making the inode on a fd into a
permanently bad inode which returns EIO on every access: see
make_bad_inode(). vhangup also already deals with this sort of thing
for tty devices already.

--Stephen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.428 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site