Re: whatever happened to down_timeout()?

2007-02-13 Thread Chris Friesen
Chris Friesen wrote: static inline int down_timeout(struct semaphore * sem, unsigned int timeout) { int ret = down_trylock(sem); if (!ret) ret = __down_timeout(sem, timeout); return ret; } Sorry, I think that should be: static inline int down_timeout(struct semaphore *

whatever happened to down_timeout()?

2007-02-13 Thread Chris Friesen
There has been some discussion on lkml about a function that would either down a semaphore or else abort if it couldn't get the semaphore in a certain amount of time. Something along the lines of: down_timeout(struct semaphore *sem, long timeout); Does something like this exist? Does

whatever happened to down_timeout()?

2007-02-13 Thread Chris Friesen
There has been some discussion on lkml about a function that would either down a semaphore or else abort if it couldn't get the semaphore in a certain amount of time. Something along the lines of: down_timeout(struct semaphore *sem, long timeout); Does something like this exist? Does

Re: whatever happened to down_timeout()?

2007-02-13 Thread Chris Friesen
Chris Friesen wrote: static inline int down_timeout(struct semaphore * sem, unsigned int timeout) { int ret = down_trylock(sem); if (!ret) ret = __down_timeout(sem, timeout); return ret; } Sorry, I think that should be: static inline int down_timeout(struct semaphore *