.\" 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 "SCSILUN_TO_INT" "9" "09 October 2005" "" "" .SH NAME scsilun_to_int \- .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int scsilun_to_int (struct scsi_lun * \fIscsilun\fB); \fR .SH "ARGUMENTS" .TP \fB\fIscsilun\fB\fR struct scsi_lun to be converted. .SH "DESCRIPTION" .PP Convert \fIscsilun\fR from a struct scsi_lun to a four byte host byte-ordered integer, and return the result. The caller must check for truncation before using this function. .SH "NOTES" .PP The struct scsi_lun is assumed to be four levels, with each level effectively containing a SCSI byte-ordered (big endian) short; the addressing bits of each level are ignored (the highest two bits). For a description of the LUN format, post SCSI-3 see the SCSI Architecture Model, for SCSI-3 see the SCSI Controller Commands. .SH "GIVEN A STRUCT SCSI_LUN OF" .PP 0a 04 0b 03 00 00 00 00, this function returns .SH "THE INTEGER" .PP 0x0b030a04