Messages in this thread | | | From | Tim Jansen <> | Subject | Re: no ioctls for serial ports? [was Re: LANANA: To Pending Device Num | Date | Sun, 20 May 2001 16:27:01 +0200 |
| |
On Sunday 20 May 2001 15:40, Alexander Viro wrote: > > ctlfd = open_device_control_fd(fd); > > If fd is something that doesn't have a control interface (say, it already > > is a control filehandle), this returns an appropriate error code. > It may have several. Which one?
That's why I proposed using multi-stream files. With a syscall like
fd2 = open_substream(fd, "somename")
you could have several control streams and also be prepared if you want to support multi-stream filesystems like NTFS in the future...
BTW: how does this work in NT? Do you first open a file and then fork it like in my example, do they have a special open for substreams or is the substream always encoded in the filename?
bye... - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |