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
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:
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
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 *k
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
> fd=open("/dev/kmem",O_RDWR);memp=mmap(0,si
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 perfect