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

From: Paulo da Silva
Date: Mon Nov 07 2005 - 20:16:48 EST


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/