On Mon, Feb 25, 2008 at 04:56:39PM -0800, Kevin Lloyd wrote: > > > I saw that the network driver framework has the ability to register > > > packet handlers to devices data streams via the dev_add_pack > command, I > > > was hoping that the usb_serial drivers might have similar > functionality > > > (I couldn't find any). > > > > No, the tty layer doesn't let you do this. Well, it could, if you > > create a new line discipline, but I really think you don't want to do > > that, it's quite difficult. > > > > Why not just use what Alan suggested? Do all of this logic in a > > userspace program? > We were hoping to have the DM stream output from a virtual serial port > for easy & direct access for 3rd party developers (file handles are > simple and straightforward to read/write from). My thought is that > implementing this in a userspace daemon/program requires cross-process > communication which I feel is a bit more complex (or is there a standard > way for a userspace program to output to a virtual serial port to obtain > the same net effect).
But is the "DM stream output" really a tty port at all? If not, shouldn't you create a new character device node that can have this data exported to it? Then have the driver siphon off the data and put it in the buffer for that "pipe". However, I really don't know the protocol you all are using here, and what it would take to parse this kind of information in the kernel, so I can't easily judge which would be the easiest way to do this. Try it and see :) good luck, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
