User: Password:
|
|
Subscribe / Log in / New account

Kernel events without kevents

Kernel events without kevents

Posted Mar 15, 2007 17:18 UTC (Thu) by bronson (subscriber, #4806)
In reply to: Kernel events without kevents by pphaneuf
Parent article: Kernel events without kevents

...it's just that we are missing the APIs to map some things to "objects", so we can't wait on them. Like futexes, for example.

Er, doesn't futex(2) support FUTEX_FD? I'm going to use this in code I'm going to write next week. Someone please tell me now if this doesn't work!


(Log in to post comments)

Kernel events without kevents

Posted Mar 15, 2007 17:25 UTC (Thu) by pphaneuf (subscriber, #23480) [Link]

Sorry for the confusion, I was unaware of FUTEX_FD! That said, I didn't test it either, but it looks similar to what I have been wanting.

I suppose what I am wishing for is for this to be in the POSIX thread API itself, but that's asking for a great deal.

Kernel events without kevents

Posted Mar 16, 2007 15:53 UTC (Fri) by cventers (guest, #31465) [Link]

I think I remember reading something on LKML about FUTEX_FD being
broken...

Kernel events without kevents

Posted Mar 16, 2007 15:58 UTC (Fri) by pphaneuf (subscriber, #23480) [Link]

Since it doesn't see any use in the mutex API that everyone uses, it's not surprising... Code that's not used tends to rot.

Too bad, I would like that. I'll stay with my "pipes as semaphores" trick in the meantime...

Kernel events without kevents

Posted Mar 16, 2007 16:47 UTC (Fri) by bronson (subscriber, #4806) [Link]

You're right. Apparently it's "unfixably racy" and will disappear in June 2007.

http://lkml.org/lkml/2006/10/31/391

And it looks like there's no alternative other than self-pipes. Arg!


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