Re: Question on mmap(2) with kernel alocated memory

2001-05-05 Thread Pete Wyckoff
[EMAIL PROTECTED] said: > I am trying to mmap() into user space a kernel buffer and am having > problems. > I have a simple test example, can someone please tell me what I have got > wrong ? > > In a driver I do: > uint*kva; > > kva = (uint*)kmalloc(4096, GFP_KERNEL); > *kva = 0

Question on mmap(2) with kernel alocated memory

2001-05-04 Thread Terry Barnaby
I am trying to mmap() into user space a kernel buffer and am having problems. I have a simple test example, can someone please tell me what I have got wrong ? In a driver I do: uint*kva; kva = (uint*)kmalloc(4096, GFP_KERNEL); *kva = 0x11223344; printk("Address: %p %lx %x\n"