LWN.net Logo

What's needed to fix user-space device enumeration?

What's needed to fix user-space device enumeration?

Posted Jun 22, 2003 15:22 UTC (Sun) by pimlott (guest, #1535)
Parent article: What's needed to fix user-space device enumeration?

With a unique, increasing sequence number, it is simple for a user-space process to detect (and fix) misordered events. Problem solved.

I'm not a kernel hacker, but I don't think it's that simple. Say hotplug writes the sequence number to a file when it finishes processing an event. When it gets an event, it checks the file against the sequence number of the event. Say event 8 comes in, and the file contains 6. What does hotplug do? It waits for the file to turn 7, of course. What if that never happens? Ok, there better be a timeout. After the timeout, you need to make sure 8 happens before 9, which may also have been waiting.

All doable, but it's a lot of work just to reverse the event stream -> processes transformation done by the kernel.


(Log in to post comments)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds