Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #584
Difficulty: Easy
Binary files generally requires less space and are more efficient to process.
True or False?
Linux & Unix Commands - Search Man Pages

srp_reconnect_rport(9) [centos man page]


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 <> Author. Rob Landley <> Author. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 SRP_RECONNECT_RPORT(9)

Check Out this Related Man Page

FC_REMOTE_PORT_ADD(9)						  SCSI mid layer					     FC_REMOTE_PORT_ADD(9)

fc_remote_port_add - notify fc transport of the existence of a remote FC port. SYNOPSIS
struct fc_rport * fc_remote_port_add(struct Scsi_Host * shost, int channel, struct fc_rport_identifiers * ids); ARGUMENTS
shost scsi host the remote port is connected to. channel Channel on shost port connected to. ids The world wide names, fc address, and FC4 port roles for the remote port. DESCRIPTION
The LLDD calls this routine to notify the transport of the existence of a remote port. The LLDD provides the unique identifiers (wwpn,wwn) of the port, it's FC address (port_id), and the FC4 roles that are active for the port. For ports that are FCP targets (aka scsi targets), the FC transport maintains consistent target id bindings on behalf of the LLDD. A consistent target id binding is an assignment of a target id to a remote port identifier, which persists while the scsi host is attached. The remote port can disappear, then later reappear, and it's target id assignment remains the same. This allows for shifts in FC addressing (if binding by wwpn or wwnn) with no apparent changes to the scsi subsystem which is based on scsi host number and target id values. Bindings are only valid during the attachment of the scsi host. If the host detaches, then later re-attaches, target id bindings may change. This routine is responsible for returning a remote port structure. The routine will search the list of remote ports it maintains internally on behalf of consistent target id mappings. If found, the remote port structure will be reused. Otherwise, a new remote port structure will be allocated. Whenever a remote port is allocated, a new fc_remote_port class device is created. Should not be called from interrupt context. NOTES
This routine assumes no locks are held on entry. AUTHORS
James Bottomley <> Author. Rob Landley <> Author. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 FC_REMOTE_PORT_ADD(9)

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers


Hi all, I've managed to get Mandrake 9 installed by disconnecting my 2 windows' drives. When I reconnect them Mandrake wants to take over. I figure it's time for the BootManager, or should I use a Linux specific one like Lilo? Or have I already stuffed up by not running Lilo at time of... (2 Replies)
Discussion started by: onestepto
2 Replies

2. Solaris

Mirro meaning and test

Problem: i have two HDD one on primary SCSI port and the second one on the secondary SCSI port and i make mirror with the following commands: dft format_disk esp1 scsi3 dft create_sys dft mirror_sys and the mirror operation successfully finished but when i rebooting the station with only one... (0 Replies)
Discussion started by: hatemeid
0 Replies

3. Programming

SCSI interfacing by C

how can I make interfacing with the SCSI controller on linux system using C language to send or recieve data via this SCSI port like I made with serial port and socket ???:confused: how can I deal with this port ??:rolleyes: how can I get its address or its device name ???:eek: thanks for help. (2 Replies)
Discussion started by: Ahmed waheed
2 Replies

4. UNIX for Advanced & Expert Users

Kernel Programming: Finding the number of I/O requests

Hi I'd like to know a logic or a strategy to count the number of I/O requests that are being made. I have the PID of the process for which this needed to be done. Does anyone have any clue as to how to do this? This is to be done in Kernel programming in C. P.S: This is to be done in... (2 Replies)
Discussion started by: Ir1s
2 Replies

5. UNIX for Dummies Questions & Answers

Help with commands

Hi again guys, today i bring to you new doubts, let me show the first example #!/bin/bash # ligass: lista archivos que son enlace simbólico o tienen enlaces hard # simbólicos: en ls -l se busca que empiece con l if then echo Error: ligas: $1 no es un directorio exit code tags please On... (7 Replies)
Discussion started by: Newer
7 Replies

6. AIX

AIX help -reconnect EMC lun

we have an old AIX system with important data on an EMC LUN. the AIX server crashed and we had to rebuild it with the old AIX os 5.8. how do we reconnect the EMC LUN without losing the data? (15 Replies)
Discussion started by: jhudson12
15 Replies

Featured Tech Videos