Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Nov 2012 22:12:02 -0800
From:      Oleksandr Tymoshenko <gonzo@bluezbox.com>
To:        arch@freebsd.org
Subject:   [RFC] sema_wait_sig 
Message-ID:  <E5FE70A7-D2D2-4021-950B-48FD84F11F08@bluezbox.com>

next in thread | raw e-mail | index | archive | help
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.

Thank you



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E5FE70A7-D2D2-4021-950B-48FD84F11F08>