Re: query on usb.c used for testing gadgetfs

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

 



On Mon, 7 Nov 2011, Ryan T wrote:

> Stumbled across this thread and have come to the same issue.
> 
> I've traced through the ioctl() and found that it is hanging in the
> get_ready_ep() in the ep_ioctl().  Specifically that the lock is not able to be
> acquired on the ep1out.
> 
> This would be the same lock acquired in the pending ep_read() sitting there for
> data from the host.

Are you saying that you want to do an ioctl to the endpoint file, but 
you can't because there's a pending read holding the mutex?

> What would the recommend way to 'kick' this read thread be to cause it to
> release the semaphore?

Send it a signal.

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


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

  Powered by Linux