Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 May 2002 09:40:16 -0400
From:      "Nelson, Trent ." <tnelson@switch.com>
To:        "'freebsd-hackers@freebsd.org'" <freebsd-hackers@freebsd.org>
Subject:   Kernel spin lock facilities
Message-ID:  <8F329FEDF58BD411BE5200508B10DA76056ED3A0@exchptc1.switch.com>

next in thread | raw e-mail | index | archive | help
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?

	Regards,

		Trent. 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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