示例#1
0
int previewer_mmap(struct file *filp, struct vm_area_struct *vma)
{
	/* get the address of global object of prev_device structure */
	struct prev_device *device = &prevdevice;
	return (imp_common_mmap(filp, vma, device->chan));
}
示例#2
0
/*
=====================rsz_mmap===========================
Function to map device memory into user	space
 */
static int rsz_mmap(struct file *filp, struct vm_area_struct *vma)
{
	struct imp_logical_channel *chan =
	    (struct imp_logical_channel *)filp->private_data;
	return (imp_common_mmap(filp, vma, chan));
}				/*     End     of Function     resizer_mmap */