Shared semaphore between user and kernel spaces

前端 未结 8 1145
死守一世寂寞
死守一世寂寞 2020-12-24 07:29

Short version

Is it possible to share a semaphore (or any other synchronization lock) between user space and kernel space? Named POSIX semaphores have kernel persi

8条回答
  •  别那么骄傲
    2020-12-24 08:15

    I was thinking about ways that kernel and user land share things directly i.e. without syscall/copyin-out cost. One thing I remembered was the RDMA model where the kernel writes/reads directly from user space, with synchronization of course. You may want to explore that model and see if it works for your purpose.

提交回复
热议问题