SCSILUN_TO_INT

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

scsilun_to_int -  

SYNOPSIS

"SYNOPSIS"

int scsilun_to_int (struct scsi_lun * scsilun);  

ARGUMENTS

scsilun
struct scsi_lun to be converted.
 

DESCRIPTION

Convert scsilun 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.  

NOTES

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.  

GIVEN A STRUCT SCSI_LUN OF

0a 04 0b 03 00 00 00 00, this function returns  

THE INTEGER

0x0b030a04


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
NOTES
GIVEN A STRUCT SCSI_LUN OF
THE INTEGER

This document was created by man2html, using the manual pages.
Time: 00:02:46 GMT, October 09, 2005