.\" 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 "SR_KREF_RELEASE" "9" "09 October 2005" "" ""
.SH NAME
sr_kref_release \- Called to free the scsi_cd structure
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void sr_kref_release (struct kref * \fIkref\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIkref\fB\fR
pointer to embedded kref
.SH "DESCRIPTION"
.PP
sr_ref_sem must be held entering this routine. Because it is
called on last put, you should always use the \fBscsi_cd_get\fR
\fBscsi_cd_put\fR helpers which manipulate the semaphore directly
and never do a direct \fBkref_put\fR\&.