OK, hopefully my last couple of questions:
1. From the kernel, what's the best way to enumerate the devices that are
already plugged in?
2. I can use filp_open to open the devices in USBFS, this gives me a struct
file, from which I can get the struct file_operations, from which I can get
a pointer to the IOCTL function for that device. I can cast that as a
function pointer, and call it, but I believe that it's expecting the last
parameter to be a pointer to a buffer in userspace. Is there a correct
way to handle this?
--
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