On Mon, 19 Apr 2010, Sumit Panchasara wrote: > I've tested it but it does not go to any of the routine you have > mentioned!!! > > Is there anything need to modify in usb.c or gadgetfs ? > > The EP file names are "ep1in" and "ep2out"... The write() call in usb.c's ep_config() will go to ep_config() in inode.c. That routine does: fd->f_op = &ep_io_operations; And above you can see that in ep_io_operations, .unlocked_ioctl = ep_ioctl, When the ioctl() call occurs, it goes to do_vfs_ioctl() in fs/ioctl.c. >From there it goes to file_ioctl() and vfs_ioctl() in the same source file. Finally, vfs_ioctl() calls error = filp->f_op->unlocked_ioctl(filp, cmd, arg); So unless you messed up usb.c too badly, the ioctl() will invoke ep_ioctl(). Alan Stern -- 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