.\"Generated by db2man.xsl. Don't modify this, modify the source.
.de Sh \" Subsection
.br
.if t .Sp
.ne 5
.PP
\fB\\$1\fR
.PP
..
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Ip \" List item
.br
.ie \\n(.$>=3 .ne \\$3
.el .ne 3
.IP "\\$1" \\$2
..
.TH "IEEE1284_CLAIM" 3 "" "" ""
.SH NAME
ieee1284_claim \- claim access to the port
.SH "SYNOPSIS"
.ad l
.hy 0

#include <ieee1284\&.h>
.sp
.HP 20
int\ \fBieee1284_claim\fR\ (struct\ parport\ *\fIport\fR);
.ad
.hy

.SH "DESCRIPTION"

.PP
With the exception of \fBieee1284_get_deviceid\fR(3), \fBieee1284_claim\fR must be called on an open port before any other libieee1284 function for accessing a device on it\&.

.SH "RETURN VALUE"

.TP
\fBE1284_OK\fR
Success\&. Note that, unless the \fBF1284_EXCL\fR flag was specified to start with, the port should be released within a ``reasonable'' amount of time\&.

.TP
\fBE1284_NOMEM\fR
There is not enough memory\&.

.TP
\fBE1284_INVALIDPORT\fR
The \fIport\fR parameter is invalid (for instance, it might not have been opened yet)\&.

.TP
\fBE1284_SYS\fR
There was a problem at the operating system level\&. The global variable \fIerrno\fR has been set appropriately\&.

.SH "SEE ALSO"

.PP
\fBieee1284_release\fR(3)

.SH AUTHOR
Tim Waugh <twaugh@redhat\&.com>.
