From mboxrd@z Thu Jan 1 00:00:00 1970 From: mindentropy@gmail.com (mindentropy) Date: Sun, 18 Sep 2011 23:32:30 +0530 Subject: Regarding mmap synchronization. Message-ID: <201109182332.30556.mindentropy@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi, I have mmaped a circular queue buffer created in the kernel. Now I want to mmap the read and write pointers in the queue but I am not sure how to synchronize the access of the pointers between the kernel and userspace(while checking sizes for overflow and underflow). How should I go about doing this? Thanks.