I've been searching Google and LQ trying to figure out how to use mmap. I find plenty of examples on how to set the mmap on the user side:
dmap = mmap(0, size, flags, fd, 0);
However, I can't find how to create the mmap interface on the kernel module side. Can anyone help me, or at least point me in the right direction?