2005-11-08 01:16:56

by Paulo da Silva

[permalink] [raw]
Subject: Accessing file mapped data inside the kernel (newbie Q.)

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