On Tue, Mar 23, 2010 at 06:20:05AM +0100, ext Misael Lopez wrote:
Hi, I have a MTP USB function driver and want to notify to userspace about class-specific requests (get device status, cancel request, device reset, as per PIMA15740 specification) received by the driver. What is the best way to pass these control events to user space? The current implementation of the driver uses a signal (using send_sig_info()) to pass the ID of the request to userspace, but that solution doesn't look clean to me, maybe I'm wrong. Anyway I guess there may be a standard way to make this kind of notifications.
we are currently using POLLPRI + ioctl(). We might send a version 2 of our mtp function driver soon along with the u_char.c.
-- balbi -- 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