a ring buffer like kfifo, work in linux kernel space, and test on kernel 3.13 on x86, ARM platform