summaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_def.h
diff options
context:
space:
mode:
authorSven Schuetz2008-06-10 18:20:59 +0200
committerJames Bottomley2008-07-12 15:22:26 +0200
commit85a82392fe6fe7620d8fe0eb694f926cefe62e1f (patch)
treef05a7ad547ca8eed52fa4cca1a424a881b7b733b /drivers/s390/scsi/zfcp_def.h
parent[SCSI] zfcp: Message cleanup (diff)
downloadkernel-qcow2-linux-85a82392fe6fe7620d8fe0eb694f926cefe62e1f.tar.gz
kernel-qcow2-linux-85a82392fe6fe7620d8fe0eb694f926cefe62e1f.tar.xz
kernel-qcow2-linux-85a82392fe6fe7620d8fe0eb694f926cefe62e1f.zip
[SCSI] zfcp: Add port_state attribute to sysfs
The sysfs attribute /sys/class/fc_host/hostX/port_state was not set by zfcp so far. Now, the appropriate members of the fc_function_template struct are set during its initialziation. The first is a boolean to show the port state. The second is a function pointer to the function zfcp_get_host_port_state, which reads the port state from our adapter status bits and calls fc_host_port_state with the approriate port state afterwards. Signed-off-by: Sven Schuetz <sven@linux.vnet.ibm.com> Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_def.h')
0 files changed, 0 insertions, 0 deletions