Re: Creating posix shm interface

2022-04-06 Thread Xiang Xiao
On Thu, Apr 7, 2022 at 1:51 PM Jukka Laitinen wrote: > > On 7.4.2022 8.18, Xiang Xiao wrote: > > On Wed, Apr 6, 2022 at 8:20 PM Jukka Laitinen > wrote: > > > >> Hi! > >> > >> Just started crafting the posix shm driver, with the following: > >> > >> - Started with "driver" approach (i.e. not moun

Re: Creating posix shm interface

2022-04-06 Thread Jukka Laitinen
On 7.4.2022 8.18, Xiang Xiao wrote: On Wed, Apr 6, 2022 at 8:20 PM Jukka Laitinen wrote: Hi! Just started crafting the posix shm driver, with the following: - Started with "driver" approach (i.e. not mountable fs), similar to mqueue. - Added shm_open and shm_unlink to syscalls (similarly

Re: Creating posix shm interface

2022-04-06 Thread Xiang Xiao
On Wed, Apr 6, 2022 at 8:20 PM Jukka Laitinen wrote: > Hi! > > Just started crafting the posix shm driver, with the following: > > - Started with "driver" approach (i.e. not mountable fs), similar to > mqueue. > > - Added shm_open and shm_unlink to syscalls (similarly as mq_open). > shm_unlink wo

Re: Creating posix shm interface

2022-04-06 Thread Jukka Laitinen
Hi! Just started crafting the posix shm driver, with the following: - Started with "driver" approach (i.e. not mountable fs), similar to mqueue. - Added shm_open and shm_unlink to syscalls (similarly as mq_open). shm_unlink would *maybe* also work directly through vfs, but at least shm_open

Re: Creating posix shm interface

2022-04-05 Thread Xiang Xiao
On Tue, Apr 5, 2022 at 5:08 PM Jukka Laitinen wrote: > Hi! > > I would like to do the posix shm interface for NuttX (shm_open, > shm_unlink etc.); with the following properties > > - Would work in all memory protection modes (flat, protected and kernel). > > - In flat it would just "malloc"

Creating posix shm interface

2022-04-05 Thread Jukka Laitinen
Hi! I would like to do the posix shm interface for NuttX (shm_open, shm_unlink etc.); with the following properties - Would work in all memory protection modes (flat, protected and kernel).     - In flat it would just "malloc" the memory and share the pointer w. mmap     - In protected it