raspberry pi dirver for globalmem which concurrency control with semaphore mechanism