Date: Fri, 23 Nov 2012 11:48:59 -0800 From: Garrett Cooper <yanegomi@gmail.com> To: Oleksandr Tymoshenko <gonzo@bluezbox.com> Cc: arch@freebsd.org Subject: Re: [RFC] sema_wait_sig Message-ID: <CAGH67wS4toXOss=ZLWYn4zoHwzaFF9qg=TMVchGf7a257VSqnQ@mail.gmail.com> In-Reply-To: <E5FE70A7-D2D2-4021-950B-48FD84F11F08@bluezbox.com> References: <E5FE70A7-D2D2-4021-950B-48FD84F11F08@bluezbox.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 22, 2012 at 10:12 PM, Oleksandr Tymoshenko <gonzo@bluezbox.com> wrote: > Hello, > > Is there any particular reason FreeBSD does not have sema_wait_sig > function? It seems to be easily implementable using cv_wait_sig > function. > > The reason I'm asking is that I'm getting some Linux drivers > ported to FreeBSD and the code in question relies on semaphores > and there is no obvious alternative to down_interruptible function. > I realize that not all approaches to driver development are easily > mappable from OS to OS but in this case lack of cv_wait_sig seems > like gap in API. Unless of course there is strong rationale behind it. There were a bunch of ACKs when John Polstra wanted to do work add sema_wait_sig, but it looks like the work wasn't completed (or at least not committed back to FreeBSD proper): http://unix.derkeiler.com/Mailing-Lists/FreeBSD/arch/2004-06/0074.html . HTH, -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGH67wS4toXOss=ZLWYn4zoHwzaFF9qg=TMVchGf7a257VSqnQ>