.\" 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_LOCK_TAKE" "9" "09 October 2005" "" ""
.SH NAME
drm_lock_take \-
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int drm_lock_take (__volatile__ unsigned int * \fIlock\fB, unsigned int \fIcontext\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIlock\fB\fR
-- undescribed --
.TP
\fB\fIcontext\fB\fR
-- undescribed --
.SH "DESCRIPTION"
.PP
.PP
\\param lock lock pointer.
\\param context locking context.
\\return one if the lock is held, or zero otherwise.
.PP
Attempt to mark the lock as held by the given context, via the \\p cmpxchg instruction.