Re: usbfs, claiming entire usb devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Donnerstag, 7. Mai 2009 16:46:11 schrieb Alan Stern:
> > I haven't yet given serious thought to the API, sorry (probably this will
> > happen next week)
>
> It isn't as simple as it might sound.  A program could simply write a
> hub name and port number to a file.  But what format should we use for
> the hub name?  And where should the file be located?  Maybe it would be
> easier if we used the hub's own usbfs device file.  But if a program
> wanted to claim ports on lots of hubs then it would have to open lots
> of files; is that likely to be an issue?

If you want to get the ports back when the owner dies, you should use
an fd per port. The best way to get that to have a file per port that you
can open.

	Regards
		Oliver

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux