Skip to contentSkip to conversation

Accessing file mapped data inside the kernel (newbie Q.)

DISCUSSION Paulo da Silva 1 participant 1 message Nov 8, 2005

lore
Share & tools
lore
#0 lore raw

Hello!

How do I access the data and its length mapped to a file after returning from generic_file_mmap(file,vma) inside the kernel?
How about more than one page?

int <A_FILESYSTEM_NAME (ext3 for ex.)>_file_mmap(struct file * file, struct vm_area_struct * vma) {
int addr;
addr=generic_file_mmap(file,vma);
?????
return addr;
}

Thanks