From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <8ccc8ba40907190814g652f88f6u817a3085b563fdf7@mail.gmail.com> <8ccc8ba40907190858w3b8911cel6b8d64cf22065e71@mail.gmail.com> <599f06db0907200012p3c3c09d1k6e9f50c38fb7a2c0@mail.gmail.com> Date: Tue, 21 Jul 2009 10:51:50 +0200 Message-ID: <8ccc8ba40907210151o5e896246p69e8a64b8aa0b48a@mail.gmail.com> From: Francisco J Ballesteros To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [9fans] new usb stack and implicit timeouts Topicbox-Message-UUID: 29730512-ead5-11e9-9d60-3106f5b1d025 In the end, I'm going to let the user driver issue a timeout control request to devusb to activate timeouts if desired. Instead of forcing it to rely on alarm/threadnotify. The main reason is that the FS machinery used by some drivers may use different processes for different requests. Using notify would require installing handlers on them, but they are not `owned' by the driver. It's just that they call driver routines to implement read/write when the file belongs to the driver. Considering also that the tmout code in the kernel has to be there in any case to abort control requests cleanly, I think the easiest thing is to let the user activate this code for other types of endpoint (besides control ones). Perhaps I'm missing something. If anyone can see I'm making a mistake, I'd like to learn that. This is part of the interface for drivers and once we are happy with it it's likely to stay that way for a while.