.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "DRM_MMAP" "9" "09 October 2005" "" "" .SH NAME drm_mmap \- .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int drm_mmap (struct file * \fIfilp\fB, struct vm_area_struct * \fIvma\fB); \fR .SH "ARGUMENTS" .TP \fB\fIfilp\fB\fR -- undescribed -- .TP \fB\fIvma\fB\fR -- undescribed -- .SH "DESCRIPTION" .PP .PP \\param filp file pointer. \\param vma virtual memory area. \\return zero on success or a negative number on failure. .PP If the virtual memory area has no offset associated with it then it's a DMA area, so calls \fBmmap_dma\fR\&. Otherwise searches the map in drm_device::maplist, checks that the restricted flag is not set, sets the virtual memory operations according to the mapping type and remaps the pages. Finally sets the file pointer and calls \fBvm_open\fR\&.