suse man page for scsi_alloc_sdev

Query: scsi_alloc_sdev

OS: suse

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

SCSI_ALLOC_SDEV(9)						  SCSI mid layer						SCSI_ALLOC_SDEV(9)

NAME
scsi_alloc_sdev - allocate and setup a scsi_Device
SYNOPSIS
struct scsi_device * scsi_alloc_sdev(struct scsi_target * starget, unsigned int lun, void * hostdata);
ARGUMENTS
starget which target to allocate a scsi_device for lun which lun hostdata usually NULL and set by ->slave_alloc instead
DESCRIPTION
Allocate, initialize for io, and return a pointer to a scsi_Device. Stores the shost, channel, id, and lun in the scsi_Device, and adds scsi_Device to the appropriate list.
RETURN VALUE
scsi_Device pointer, or NULL on failure.
AUTHORS
James Bottomley <James.Bottomley@hansenpartnership.com> Author. Rob Landley <rob@landley.net> Author.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 SCSI_ALLOC_SDEV(9)
Related Man Pages
fc_remote_port_delete(9) - centos
tgt-setup-lun(8) - debian
mpioutil(1) - osx
scsi_device(9s) - centos
scsi_device(9s) - php
Similar Topics in the Unix Linux Community
Is UNIX an open source OS ?
Getting command output to putty window title.
Migrating to UNIX
A (ksh) Library For and From UNIX.com
Docker learning Phase-I