.\" 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 "ZFCP_SG_LIST_ALLOC" "9" "09 October 2005" "" ""
.SH NAME
zfcp_sg_list_alloc \- create a scatter-gather list of the specified size
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int zfcp_sg_list_alloc (struct zfcp_sg_list * \fIsg_list\fB, size_t \fIsize\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIsg_list\fB\fR
structure describing a scatter gather list
.TP
\fB\fIsize\fB\fR
size of scatter-gather list
.SH "RETURN"
.PP
0 on success, else -ENOMEM
.PP
In sg_list->sg a pointer to the created scatter-gather list is returned,
or NULL if we run out of memory. sg_list->count specifies the number of
elements of the scatter-gather list. The maximum size of a single element
in the scatter-gather list is PAGE_SIZE.