kqueue

2002-09-24 Thread Michel Oosterhof
Hello. Recently I started looking into kqueue(2), and to get to know the interface better I attempted to turn usr.sbin/moused into a kqueue program (replacing the main select() loop that reads the mouse device). Now I thought I understood the interface, I requested a kqueue, but as soon as I

Re: kqueue

2002-09-24 Thread Kris Kennaway
On Tue, Sep 24, 2002 at 11:07:04PM +0200, Michel Oosterhof wrote: > > Hello. > > Recently I started looking into kqueue(2), and to get to know the > interface better I attempted to turn usr.sbin/moused into a kqueue > program (replacing the main select() loop that reads

kqueue and filenames

2012-01-23 Thread Info
Hi, I'm using kqueue for detecting file-events; for additional information I add a struct to udata, when registering an event with kevent. When I delete an event, will be udata deleted too, or do I have to manage the memory for the structs with an own implementation? kevent is triggered

Re: kqueue and filenames

2012-01-23 Thread Pieter de Goeje
On 23-1-2012 11:52, Info wrote: I'm using kqueue for detecting file-events; for additional information I add a struct to udata, when registering an event with kevent. When I delete an event, will be udata deleted too, or do I have to manage the memory for the structs with an own implement

Re: kqueue and filenames

2012-01-23 Thread Info
Thanks for your reply! Am 23.01.2012 20:12, schrieb Pieter de Goeje: kevent is triggered when a file is renamed. How do I get the new name? Is there an extra function? In the moment, I see only the possibility by searching the filesystem(folder) for a new name. A good question to which I unfort

KQueue and EVFILT_TIMER question

2008-02-20 Thread Mel
Hi, I'm using a kqueue(2) that installs a timer into the queue when a certain condition has happened. This timer waits for another condition at intervals (specifically, it watches for a file to be created). Every 500ms it does a stat(2) for a given filename and when stat succeeds, I d

kqueue + EVFILT_TIMER unreliable timing problems

2011-07-07 Thread Steven Ayre
Hi everyone, I'm trying to use kqueue with EVFILT_TIMER to create an interval timer. However, I'm getting very unreliable results. The code for a test case is at: http://pastebin.com/ratK0AXL I'm finding that regardless of the number of ticks I wait for, it takes around 50%

Using kqueue with 2 threads

2012-04-10 Thread Ben Short
Hi, I'm trying to use a kqueue to listen for VNODE events on a worker thread. I want new events to be registered with the kqueue by a separate thread. I have been referring to this example [URL=" http://doc.geoffgarside.co.uk/kqueue/file.html";] http://doc.geoffgarside.co.uk/k

activating KQUEUE on apache 2_0_54_4

2005-09-23 Thread Dimitar Vasilev
Hi! I apply the KQUEUE patch for apache 2.0.54_4 - make WITH_KQUEUE_SUPPORT=yes install but after that top -U www shows that it uses select(). Anyone knows how to activate apache to use kqueue in config file or somewhere else? Regards, -- Димитър Василев Dimitar Vassilev GnuPG key ID: 0x4B8DB525

Re: Using kqueue with 2 threads

2012-04-10 Thread Ben Short
e, 1, NULL); if ( i == -1 ) { std::cerr << "kqueue produced error: " << strerror(i) << std::endl; continue; // todo is this the best thing todo? } else if ( i == 0 ) { std::cerr << "kqueue time limit expired" <<

Re: Using kqueue with 2 threads

2012-04-16 Thread Matthias Zitzen
t; std::endl; }[/CODE] Did i understand right, that after registering and firing one event the kevent() function doesn't block any more? If so, register the events with EV_ADD | EV_CLEAR. With this flag, the event state is cleared and kevent() is still blocking(man kqueue). That

kqueue and polling ... are they related?

2005-10-27 Thread ke.han
Dear list, I will be using kqueue on freeBSD 6.0-rc1 and need to understand the relationship between kqueue and polling since polling support requires explicite enabling and choosing the correct ethernet drivers, etc... First, is there a relationship between kqueue and polling? The kqueue man

replacing select() with kqueue() for pppd?

2005-08-02 Thread Bsderss
Hi, Is possible replace all select() functions with kqueue() and kevent() for FreeBSD 5.x or Current? Sam Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs

Re: kqueue and polling ... are they related?

2005-10-27 Thread Erik Trulsson
On Thu, Oct 27, 2005 at 05:09:58PM +0800, ke.han wrote: > Dear list, > I will be using kqueue on freeBSD 6.0-rc1 and need to understand the > relationship between kqueue and polling since polling support requires > explicite enabling and choosing the correct ethernet drivers, etc...

Re: kqueue and polling ... are they related?

2005-10-27 Thread ke.han
None of these have any relation to polling of the network interfaces as described in the polling(4) manpage. The only connection between poll(2) and polling(4) is that they have similar names. So, to answer your question: No, you do not need to have polling enabled in order to use kqueue

kqueue/kevent model with real-time OS

2005-08-10 Thread Bsderss
Hi, Can anyone please tell me is kqueue/kevent model in FreeBSD 5.x a real-time event model? Thanks Sam __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com