Im wondering if there have been changes to the api since FreeBSD 9 as I can't 
get some code I'm porting to work.
I have a block of kernel memory wired down and I want to map it to user space. 
Its just a big structure that has stats and other volatile info. In 9.x I was 
able to simply do:
// kptr has the kernel address obtained from an ioctl call

fd=open("/dev/kmem",O_RDWR);memp=mmap(0,size,PROT_READ|PROT_WRITE,MAP_SHARED,fd,(off_t)kptr);

And it just worked. In 11.3 it fails, and I havent been able to get ANYTHING to 
work with this method. I'm open to another method; I read something about mmap 
no longer supportinjgkmem. In which case, what can I do?
LJ
_______________________________________________
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to