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.
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