* Nelson, Trent . <[EMAIL PROTECTED]> [020501 06:41] wrote:
> Hi,
> 
>       I'm working on porting the Linux Cisco VPN client kernel module to
> FreeBSD.  The API interface between the OS and their actual driver has four
> spinlock functions that operate around a handle (void *) to a ``critical
> section'':
> 
>               CNI_free_spin_lock
>               CNI_new_spin_lock
>               CNI_spin_lock
>               CNI_spin_unlock
> 
>       Funnily enough, these wrap the Linux spinlock_t/spin_lock*()
> functionality quite nicely.  Does the FreeBSD kernel offer such a trivial
> spinlock facility?  If not, could anyone suggest what type of locking
> mechanism would best be used?

man 9 mutex, see the MTX_SPIN section, but you might not need it.

-Alfred

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to