[dpdk-dev] Bit spinlocks in DPDK

Pashupati Kumar kumarp at Brocade.COM
Fri Dec 6 23:12:47 CET 2013


I am looking for spinlocks that use a single bit (bit 31) of a 32 bit word for locking. The rest of the bits in the word are left undisturbed.  This enables more compact data structures as only 1 bit is consumed for the lock.

Thanks
Pash

-----Original Message-----
From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] 
Sent: Friday, December 06, 2013 2:02 PM
To: Pashupati Kumar
Cc: dev at dpdk.org
Subject: Re: [dpdk-dev] Bit spinlocks in DPDK

Hello,

06/12/2013 13:04, Pashupati Kumar :
> We use bit spinlocks extensively to have compact data structures.  Are 
> there any plans for adding them to DPDK in some future release?

Not sure to understand your request.
Are you looking for that?
	http://dpdk.org/doc/api/rte__spinlock_8h.html

--
Thomas


More information about the dev mailing list