Industrial I/O lock free software ring

modulename: ring_sw.ko

configname: CONFIG_IIO_SW_RING

Linux Kernel Configuration
└─>Device Drivers
└─>Staging drivers
└─>Industrial I/O support
└─>Industrial I/O lock free software ring
In linux kernel since version 2.6.32 (release Date: 2009-12-02)  
Example software ring buffer implementation. The design aim
of this particular realization was to minimize write locking
with the intention that some devices would be able to write
in interrupt context.

source code: