> > I wish we could use mmap in kernel space but I think its hard to implement > this, all kernel memory is directly and permanently mapped and not > swappable. You can vmalloc in kernel but you cannot mmap.. >
Sorry I went wrong there, what I meant was you cannot have a page fault trigger on kernel virtual memory so mmap in kernel driver code wouldn't work. thanks, -Joel