Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 May 2005 17:38:45 +0200
From:      "Norbert Koch" <>
To:        <>
Subject:   mutual exclusion in vkbd
Message-ID:  <000001c565f6$d46b7720$4801a8c0@ws-ew-3.W2KDEMIG>

Next in thread | Raw E-Mail | Index | Archive | Help

I am currently trying to backport vkbd to FreeBSD 4.

Maksim Yevmenkin uses mtx_lock()/mtx_unlock() for
protecting access to data structures under FreeBSD 5/6
between the device functions and the kernel thread.

How should I best do this under FreeBSD 4?

Would something like splhigh() work in that context?
Or should I use lockmgr with LK_EXCLUSIVE/LK_RELEASE?
Is there any (pseudo)process context inside a kernel task?

Thank you for any help,

Norbert Koch

Want to link to this message? Use this URL: <$d46b7720$4801a8c0>