Hi,

> It can be solved for any particular driver just by adding usb(dev)fs ioctl
> support to that driver.

:o)

> Define a structure, say FOO, that encapsulates the
> relevant device ID info ... for /dev files, major/minor and whether it's
> character or block; for network devices, something else.
>
> Then USBDEVFS_IOCTL can be used to pass an ioctl request for FOO
> to that driver (current configuration, one of N functions).  And
> the driver can fill it out, so the user level code can find the "higher
level"
> device IDs.

:o/ urgh, could you please be more concrete.  As a java developer I don't
want to spam your mailing list.  But Nemosoft put me in, so I just want to
follow this thread.  Of course I've to use JNI.  But till now I didn't dive
into kernel and driver stuff.  Just happy I found an example which showed me
the right ioctl-statement to get an imageframe from /dev/videoX.    To
precise my question.  I'm notified about the plug-in of webcam.  With this
notification I get the information which device is associated with in
usbdevfs (e.g. /proc/bus/usb/001/002).  So how does the ioctl-statement have
to look like to get a structure FOO filled with information I'm interessted
in (e.g. /dev/video0 or /dev/video1)?  And which type of structure FOO do
I've to use?  Can you give me an URL where I find the appropriate
ioctl-statement and the needed structure documented?

Thanks,

Sebastian


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to