On Monday 07 March 2005 09:12, Alex Aizman wrote: > Common header files: > - iscsi_ifev.h (user/kernel events). > - iscsi_if.h (iSCSI open interface over netlink); > - iscsi_proto.h (RFC3720 #defines and types);
> --- linux-2.6.11.orig/include/scsi/iscsi_if.h > +++ linux-2.6.11.dima/include/scsi/iscsi_if.h > +/** > + * struct iscsi_transport - down calls > + * > + * @name: transport name > + * @caps: iSCSI Data-Path capabilities > + * @create_snx: create new iSCSI session object > + * @destroy_snx: destroy existing iSCSI session object > + * @create_cnx: create new iSCSI connection > + * @bind_cnx: associate this connection with existing iSCSI session and > + * specified transport descriptor > + * @destroy_cnx: destroy inactive iSCSI connection > + * @set_param: set iSCSI Data-Path operational parameter > + * @start_cnx: set connection to be operational > + * @stop_cnx: suspend connection > + * @send_pdu: send iSCSI PDU, Login, Logout, NOP-Out, Reject, Text. > + * > + * API provided by generic iSCSI Data Path module > + */ > +struct iscsi_transport { > + char *name; > + unsigned int caps; > + unsigned int max_cnx; > + iscsi_snx_h (*create_session) (iscsi_snx_h cp_snx, > + uint32_t initial_cmdsn, uint32_t *sid); > + void (*destroy_session) (iscsi_snx_h dp_snx); > + iscsi_cnx_h (*create_cnx) (iscsi_snx_h dp_snx, iscsi_cnx_h cp_cnx, > + uint32_t cid); > + int (*bind_cnx) (iscsi_snx_h dp_snx, iscsi_cnx_h dp_cnx, > + uint32_t transport_fd, int is_leading); > + int (*start_cnx) (iscsi_cnx_h dp_cnx); > + void (*stop_cnx) (iscsi_cnx_h dp_cnx); > + void (*destroy_cnx) (iscsi_cnx_h dp_cnx); > + int (*set_param) (iscsi_cnx_h dp_cnx, iscsi_param_e param, > + uint32_t value); > + int (*send_pdu) (iscsi_cnx_h dp_cnx, struct iscsi_hdr *hdr, > + char *data, uint32_t data_size); > +}; create_snx in comment but not in structure destroy_snx in comment but not in structure destroy_session in structure but not in comment create_session in structure but not in comment max_cnx in structure but not in comment Alexey - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/