Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Jul 2020 10:59:02 -0600
From:      Ian Lepore <ian@freebsd.org>
To:        kamalp@acm.org, freebsd-arm@freebsd.org
Subject:   Re: cv_wait
Message-ID:  <ef01153a05887b10a443c71cb42aff6180ae7f8f.camel@freebsd.org>
In-Reply-To: <CAK=yUGLoM1YWX5yxsboKqaCMr2jKGgtJ0a-CVVsfeEO3SpsYLQ@mail.gmail.com>
References:  <CAK=yUGLoM1YWX5yxsboKqaCMr2jKGgtJ0a-CVVsfeEO3SpsYLQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2020-07-02 at 21:48 +0530, Kamal R. Prasad wrote:
> hello,
> 
> i have written a piece of code in a freebsd driver meant for arm. The
> first
> cv_wait(&sc->sc_cv, &sc->sc_mtx);
> keeps waiting indefinitely. If I use cv_timedwait() instead, it
> returns
> 
> EWOULDBLOCK
> 
> 
> does someone know why this is happening?
> 
> 
> thanks
> 
> -kamal
> 

That would imply that nothing is ever calling cv_signal(&sc->sc_cv) or
cv_broadcast(&sc->sc_cv).

-- Ian




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ef01153a05887b10a443c71cb42aff6180ae7f8f.camel>