Re: which mmap API

2021-10-28 Thread Jan Kiszka via Xenomai
On 28.10.21 09:30, C Smith wrote: > OK thanks. I am attaching a proposed patch for the docs. I've tried to > use the syntax of the Linux Device Drivers book. Thanks, looks good, but we need that as proper patch (subject, brief body and at least a signed-of-by). See CONTRIBUTING.md. > I will soon

Re: which mmap API

2021-10-28 Thread C Smith via Xenomai
OK thanks. I am attaching a proposed patch for the docs. I've tried to use the syntax of the Linux Device Drivers book. I will soon submit a more complete pair of test apps for using mmap(), which I assume would end up in xenomai-3.x/demo/cobalt/. thanks, -C Smith On Thu, Oct 21, 2021 at 8:23 AM

Re: which mmap API

2021-10-21 Thread Jan Kiszka via Xenomai
On 20.10.21 07:49, C Smith via Xenomai wrote: > I recently got a Xenomai 3.1 shared memory .mmap op to work but I don't see > any mmap examples in the Xemomai documentation (please publish one). I have > a question as to why I had to do it a certain way. Here is the > (abbreviated) code I used: >

which mmap API

2021-10-19 Thread C Smith via Xenomai
I recently got a Xenomai 3.1 shared memory .mmap op to work but I don't see any mmap examples in the Xemomai documentation (please publish one). I have a question as to why I had to do it a certain way. Here is the (abbreviated) code I used: typedef struct { // shared struct int data[PA