Re: mmap port from 9 not working

2019-07-22 Thread Ronald Klop
Van: Laurie Jennings Datum: maandag, 22 juli 2019 14:56 Aan: Ronald Klop Onderwerp: Re: mmap port from 9 not working Van: Laurie Jennings Datum: zondag, 21 juli 2019 16:58 Aan: Konstantin Belousov CC: FreeBSD Current Onderwerp: Re: mmap port from 9 not working On Sunday

Re: mmap port from 9 not working

2019-07-22 Thread Konstantin Belousov
On Mon, Jul 22, 2019 at 02:03:26PM +0200, Ronald Klop wrote: > > Van: Laurie Jennings > Datum: zondag, 21 juli 2019 16:58 > Aan: Konstantin Belousov > CC: FreeBSD Current > Onderwerp: Re: mmap port from 9 not working > > > > On Sunday, July 21, 2019, 10:44:

Re: mmap port from 9 not working

2019-07-22 Thread Ronald Klop
Van: Laurie Jennings Datum: zondag, 21 juli 2019 16:58 Aan: Konstantin Belousov CC: FreeBSD Current Onderwerp: Re: mmap port from 9 not working On Sunday, July 21, 2019, 10:44:14 AM EDT, Konstantin Belousov wrote: On Sun, Jul 21, 2019 at 03:48:03AM +, Laurie Jennings wrote: > I h

Re: mmap port from 9 not working

2019-07-21 Thread Laurie Jennings
On Sunday, July 21, 2019, 10:44:14 AM EDT, Konstantin Belousov wrote: On Sun, Jul 21, 2019 at 03:48:03AM +, Laurie Jennings wrote: > I have some custom stuff I'm porting from Freebsd 9.x using mmap. I get a > pointer from the kernel via an ioctl and I map it into a shared buffer. > char

Re: mmap port from 9 not working

2019-07-21 Thread Konstantin Belousov
On Sun, Jul 21, 2019 at 03:48:03AM +, Laurie Jennings wrote: > I have some custom stuff I'm porting from Freebsd 9.x using mmap. I get a > pointer from the kernel via an ioctl and I map it into a shared buffer. > char *kptr;   // mem ptr from kernel >

mmap port from 9 not working

2019-07-21 Thread Laurie Jennings
I have some custom stuff I'm porting from Freebsd 9.x using mmap. I get a pointer from the kernel via an ioctl and I map it into a shared buffer. char *kptr;   // mem ptr from kernel fd=open("/dev/kmem",O_RDWR);memp=mmap(0,size,PROT_READ|PROT_WRITE,MAP_SHARED,fd,(off_t) ptr); This worked