#include <linux/init.h>
#include <linux/module.h>
#include <linux/jiffies.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <scsi/scsi.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_transport.h>
#include <scsi/scsi_transport_srp.h>
#include "scsi_transport_srp_internal.h"
Go to the source code of this file.
|
#define | to_srp_host_attrs(host) ((struct srp_host_attrs *)(host)->shost_data) |
|
#define | SRP_HOST_ATTRS 0 |
|
#define | SRP_RPORT_ATTRS 2 |
|
#define | to_srp_internal(tmpl) container_of(tmpl, struct srp_internal, t) |
|
#define | dev_to_rport(d) container_of(d, struct srp_rport, dev) |
|
#define | transport_class_to_srp_rport(dev) dev_to_rport((dev)->parent) |
|
#define | SETUP_TEMPLATE(attrb, field, perm, test, ro_test, ro_perm) |
|
#define | SETUP_RPORT_ATTRIBUTE_RD(field) SETUP_TEMPLATE(rport_attrs, field, S_IRUGO, 1, 0, 0) |
|
#define | SETUP_RPORT_ATTRIBUTE_RW(field) |
|
#define | SRP_PID(p) |
|
#define | SRP_PID_FMT |
|
#define SETUP_RPORT_ATTRIBUTE_RW |
( |
|
field | ) |
|
#define SETUP_TEMPLATE |
( |
|
attrb, |
|
|
|
field, |
|
|
|
perm, |
|
|
|
test, |
|
|
|
ro_test, |
|
|
|
ro_perm |
|
) |
| |
Value:
i->private_##attrb[
count].attr.mode =
perm; \
if (ro_test) { \
i->private_##attrb[
count].attr.mode = ro_perm; \
} \
count++
Definition at line 75 of file scsi_transport_srp.c.
Value:"%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x:" \
"%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x"
Definition at line 99 of file scsi_transport_srp.c.
#define SRP_RPORT_ATTRS 2 |
MODULE_AUTHOR |
( |
"FUJITA Tomonori" |
| ) |
|
module_exit |
( |
srp_transport_exit |
| ) |
|
module_init |
( |
srp_transport_init |
| ) |
|
srp_remove_host - tear down a Scsi_Host's SRP data structures : Scsi Host that is torn down
Removes all SRP remote ports for a given Scsi_Host. Must be called just before scsi_remove_host for SRP HBAs.
Definition at line 281 of file scsi_transport_srp.c.
srp_rport_add - add a SRP remote port to the device hierarchy : scsi host the remote port is connected to. : The port id for the remote port.
Publishes a port to the rest of the system.
Definition at line 195 of file scsi_transport_srp.c.
srp_rport_del - remove a SRP remote port : SRP remote port to remove
Removes the specified SRP remote port.
Definition at line 251 of file scsi_transport_srp.c.