Re: Semaphores with timeouts

2008-02-14 Thread Ricardo J. Rodríguez
Hi Alan, > It's certainly possible to add one but the first question would be "why > do you need it - what sort of API are you trying to build" > The protocol works in adhoc wireless mode, so when I send a packet, I've to wait a while before I send it again, like TCP timeout retransmistions work

Re: Semaphores with timeouts

2008-02-13 Thread Alan Cox
On Thu, 14 Feb 2008 01:08:28 +0100 "Ricardo J. Rodríguez" <[EMAIL PROTECTED]> wrote: > Hi everybody, > I'm developing a driver to support a new protocol on the kernel 2.6.x, > a real time communication protocol used in robotic fields. Skipping > the intro: I need to know if there is any function i

Semaphores with timeouts

2008-02-13 Thread Ricardo J. Rodríguez
Hi everybody, I'm developing a driver to support a new protocol on the kernel 2.6.x, a real time communication protocol used in robotic fields. Skipping the intro: I need to know if there is any function in the kernel to get the process sleeping, as down_interruptible(...), but with timeouts, I mea