Richard Gooch wrote:
>
> OK. How do you figure on dealing with the problem of multiple
> high-level drivers talking to the same device? How does sr.o "know"
> that this is also a CD-RW? How does sg.o "know" that this is also a
> tape?
>
At some point something talks to the device -- in this case, it's the
SCSI layer. Follow the interfaces in the kernel and it becomes obvious.
> Where does the responsibility lie for figuring out the capabilities?
>
> Further, which device node/fs/driver exports the capability list?
>
> And what about locking between drivers?
Orthogonal issue. You may want a locking mechanism, but it almost
certainly should not be automatic.
Note that especially ide-scsi is a good example on how *not* to do
things. The fact that you have to choose one of two interfaces for
different operations (I can't use a CD-writer in the default
configuration!) is insane.
-hpa
--
<[EMAIL PROTECTED]> at work, <[EMAIL PROTECTED]> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Re: LANANA: To Pending Device Number Registrants Ingo Oeser
- Re: LANANA: To Pending Device Number Registrants H. Peter Anvin
- Re: LANANA: To Pending Device Number Registrants Jens Axboe
- Re: LANANA: To Pending Device Number Registrants Richard Gooch
- Re: LANANA: To Pending Device Number Registrants H. Peter Anvin
- Re: LANANA: To Pending Device Number Registrants Richard Gooch
- Re: LANANA: To Pending Device Number Registrants H. Peter Anvin
- Re: LANANA: To Pending Device Number Registrants Richard Gooch
- Re: LANANA: To Pending Device Number Registrants H. Peter Anvin
- Re: LANANA: To Pending Device Number Registrants Richard Gooch
- Re: LANANA: To Pending Device Number Registrants H. Peter Anvin
- Re: LANANA: To Pending Device Number Registrants Kai Henningsen
- Re: LANANA: To Pending Device Number Registrants Kai Henningsen
- Re: LANANA: To Pending Device Number Registrants Linus Torvalds
- Re: LANANA: To Pending Device Number Registrants Richard Gooch
- Re: LANANA: To Pending Device Number Registrants Alan Cox
- Re: LANANA: To Pending Device Number Registrants Richard Gooch
- Re: LANANA: To Pending Device Number Registrants H. Peter Anvin
- Re: LANANA: To Pending Device Number Registrants Alan Cox
- Re: LANANA: To Pending Device Number Registrants Jeff Garzik
- Re: LANANA: To Pending Device Number Registrants Guest section DW

