Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

scsi_add_single_device(9) [centos man page]

SCSI_ADD_SINGLE_DEVI(9) 					  SCSI mid layer					   SCSI_ADD_SINGLE_DEVI(9)

NAME
scsi_add_single_device - Respond to user request to probe for/add device SYNOPSIS
int scsi_add_single_device(uint host, uint channel, uint id, uint lun); ARGUMENTS
host user-supplied decimal integer channel user-supplied decimal integer id user-supplied decimal integer lun user-supplied decimal integer DESCRIPTION
called by writing "scsi add-single-device" to /proc/scsi/scsi. does scsi_host_lookup and either user_scan if that transport type supports it, or else scsi_scan_host_selected NOTE
this seems to be aimed exclusively at SCSI parallel busses. AUTHORS
James Bottomley <James.Bottomley@hansenpartnership.com> Author. Rob Landley <rob@landley.net> Author. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 SCSI_ADD_SINGLE_DEVI(9)

Check Out this Related Man Page

SRP_RECONNECT_RPORT(9)						  SCSI mid layer					    SRP_RECONNECT_RPORT(9)

NAME
srp_reconnect_rport - reconnect to an SRP target port SYNOPSIS
int srp_reconnect_rport(struct srp_rport * rport); ARGUMENTS
rport -- undescribed -- DESCRIPTION
Blocks SCSI command queueing before invoking reconnect such that queuecommand won't be invoked concurrently with reconnect from outside the SCSI EH. This is important since a reconnect implementation may reallocate resources needed by queuecommand. NOTES
- This function neither waits until outstanding requests have finished nor tries to abort these. It is the responsibility of the reconnect function to finish outstanding commands before reconnecting to the target port. - It is the responsibility of the caller to ensure that the resources reallocated by the reconnect function won't be used while this function is in progress. One possible strategy is to invoke this function from the context of the SCSI EH thread only. Another possible strategy is to lock the rport mutex inside each SCSI LLD callback that can be invoked by the SCSI EH (the scsi_host_template.eh_*() functions and also the scsi_host_template.queuecommand function). AUTHORS
James Bottomley <James.Bottomley@hansenpartnership.com> Author. Rob Landley <rob@landley.net> Author. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 SRP_RECONNECT_RPORT(9)
Man Page