Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Apr 2020 16:44:08 +0200
From:      Emmanuel Vadot <manu@bidouilliste.com>
To:        freebsd-hackers@freebsd.org
Cc:        hselasky@FreeBSD.org
Subject:   Linuxkpi lock types
Message-ID:  <20200428164408.8de0f460c77c5f38f03fe9af@bidouilliste.com>

next in thread | raw e-mail | index | archive | help

 Hello,

 I was looking at the linuxkpi locks and notice something that I don't
understand.

 For linux struct mutex we use or sx locks but looking at the doc in
linux (Documentation/locking/mutex-design.rst) it seems that those are
almost 1:1 our mtx, is there a reason that sx where chosen ?
 For the linux spinlocks we use MTX_DEF lock, which doesn't seems right
at all so same question.

 Thanks for your answers,

-- 
Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>



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