Re: RFC: small syscons and kbd patch

From: Garrett Cooper <yanefbsd_at_gmail.com>
Date: Thu, 4 Dec 2008 03:24:28 -0800
On Tue, Dec 2, 2008 at 5:01 PM, Maksim Yevmenkin
<maksim.yevmenkin_at_gmail.com> wrote:
> Dear Hackers,
>
> can someone please review the attached small patch for syscons and
> kbd? it should be a no-op mostly. the patch basically does
>
> 1) removes bogus layering in syscons, i.e. basically removes sccngetch();
> 2) implements advisory lock for kbd (based on atomic(9));
> 3) implements new POLLED flag for kbd;
>
> this is a part of a plan to fix keyboard access races in syscons.
>
> thanks,
> max

Max,
     Why are you double and triple negating on this line?

+	return (atomic_cmpset_acq_int(&kbd->kb_locked, !!!on, !!on));

-Garrett
Received on Thu Dec 04 2008 - 10:24:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:38 UTC