Re: Insane kfifo_put API

2013-06-16 Thread Stefani Seibold
I have cross checked this use case. This was tested, but i doesn't work any more. So i need a little bit time to fix it. The macro for this are a little bit tricky, but i think there is a way to solve this issue. For the next two weeks i am heavy busy in a final project stage, so please be patient

Insane kfifo_put API

2013-06-16 Thread Russell King - ARM Linux
So, this kfifo API... Here's an example: Let's say that we want a kfifo of structure pointers: DECLARE_KFIFO(my_ptr_kfifo, struct my_struct *, SIZE); Now, to extract pointers from this, it's relatively straight forward: struct my_struct *ptr; success = kfifo_get(&my_pt