platform/linux/mm/filemap.c
/* This is used for a general mmap of a disk file */
This is used for a general mmap of a disk file
This is used for a general mmap of a disk file
int generic_file_mmap(struct file * file, struct vm_area_struct * vma)
{
	struct address_space *mapping = file->f_mapping;
	if (!mapping->a_ops->readpage)
		return -ENOEXEC;
	file_accessed(file);
	vma->vm_ops = &generic_file_vm_ops;
	vma->vm_flags |= VM_CAN_NONLINEAR;
	return 0;
}
int generic_file_mmap ( struct file * file , struct vm_area_struct * vma ) { struct address_space * mapping = file -> f_mapping ; if ( ! mapping -> a_ops -> readpage ) return - ENOEXEC ; file_accessed ( file ) ; vma -> vm_ops = & generic_file_vm_ops ; vma -> vm_flags |= VM_CAN_NONLINEAR ; return 0 ; }
This is used for a general mmap of a disk file
This is used for a general mmap of a disk file