|
| Equivalent of BSD 'kqueue' on Linux? |
 |
Wed, 2 Apr 2008 23:41:39 -0700 |
I have a program in FreeBSD that waits for all kinds of system events:
I/O, process completion/forking, vnode events, etc.
Now I need to port it to Linux and I can't find 'kqueue' equivalent.
I found epoll_create/epoll_wait API but it's only for I/O.
Googling brings only very vague results.
I also found the old Linus Torvalds's proposition from 2000
http://uwsg.iu.edu/hypermail/linux/kernel/0010.3/0003.html
but it's unclear what happened to it.
So where does Linux stand on the issue of unified interface to wait
for different kinds of events?
And what is the best way to port 'kqueue' code to Linux?
|
| Post Reply
|
| Re: Equivalent of BSD 'kqueue' on Linux? |
 |
Thu, 3 Apr 2008 08:19:10 +0000 |
On 2008-04-03, Visa Inquirer <visa_desirer@yahoo.com> wrote:
> I have a program in FreeBSD that waits for all kinds of system events:
> I/O, process completion/forking, vnode events, etc.
>
> Now I need to port it to Linux and I can't find 'kqueue' equivalent.
> I found epoll_create/epoll_wait API but it's only for I/O.
> Googling brings only very vague results.
>
> I also found the old Linus Torvalds's proposition from 2000
> http://uwsg.iu.edu/hypermail/linux/kernel/0010.3/0003.html
> but it's unclear what happened to it.
>
> So where does Linux stand on the issue of unified interface to wait
> for different kinds of events?
> And what is the best way to port 'kqueue' code to Linux?
DBus?
--
ISO: I $old Out (formerly known as International Organization for
|
| Post Reply
|
| Re: Equivalent of BSD 'kqueue' on Linux? |
 |
Thu, 3 Apr 2008 09:55:11 -0700 |
> DBus?
What is DBus?
If you mean FreeDesktop D-Bus then it's not it. Because I am looking
|
| Post Reply
|
| Re: Equivalent of BSD 'kqueue' on Linux? |
 |
Thu, 03 Apr 2008 19:28:43 +020 |
Visa Inquirer wrote:
> I have a program in FreeBSD that waits for all kinds of system events:
> I/O, process completion/forking, vnode events, etc.
>
> Now I need to port it to Linux and I can't find 'kqueue' equivalent.
> I found epoll_create/epoll_wait API but it's only for I/O.
> Googling brings only very vague results.
>
> I also found the old Linus Torvalds's proposition from 2000
> http://uwsg.iu.edu/hypermail/linux/kernel/0010.3/0003.html
> but it's unclear what happened to it.
>
> So where does Linux stand on the issue of unified interface to wait
> for different kinds of events?
> And what is the best way to port 'kqueue' code to Linux?
Could this thread be to some kind of interest for you?
http://lwn.net/Articles/225714/
There seemed to be a kevent.h in 2.6.8.1-mm3, but it don't seem to be in my
2.6.24.4.
--
|
| Post Reply
|
|
|
|
|
|
|
|
|
|