.\" 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_ADDMAP" "9" "09 October 2005" "" ""
.SH NAME
drm_addmap \- root process.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int drm_addmap (struct inode * \fIinode\fB, struct file * \fIfilp\fB, unsigned int \fIcmd\fB, unsigned long \fIarg\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIinode\fB\fR
-- undescribed --
.TP
\fB\fIfilp\fB\fR
-- undescribed --
.TP
\fB\fIcmd\fB\fR
-- undescribed --
.TP
\fB\fIarg\fB\fR
-- undescribed --
.SH "DESCRIPTION"
.PP
.PP
\\param inode device inode.
\\param filp file pointer.
\\param cmd command.
\\param arg pointer to a drm_map structure.
\\return zero on success or a negative value on error.
.PP
Adjusts the memory offset to its absolute value according to the mapping
type. Adds the map to the map list drm_device::maplist. Adds MTRR's where
applicable and if supported by the kernel.