Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/iscsi/iscsi_ioctl.h
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | struct iscsi_session_conf { | ||||
int isc_spare[4]; | int isc_spare[4]; | ||||
}; | }; | ||||
/* | /* | ||||
* Additional constraints imposed by chosen ICL offload module; | * Additional constraints imposed by chosen ICL offload module; | ||||
* iscsid(8) must obey those when negotiating operational parameters. | * iscsid(8) must obey those when negotiating operational parameters. | ||||
*/ | */ | ||||
struct iscsi_session_limits { | struct iscsi_session_limits { | ||||
size_t isl_max_data_segment_length; | size_t isl_spare0; | ||||
int isl_spare[8]; | int isl_max_recv_data_segment_length; | ||||
int isl_max_send_data_segment_length; | |||||
int isl_max_burst_length; | |||||
int isl_first_burst_length; | |||||
int isl_spare[4]; | |||||
}; | }; | ||||
trasz: Again, why not size_t? | |||||
Not Done Inline ActionsTakes twice the size on amd64. See reply to previous inline comment too. np: Takes twice the size on amd64. See reply to previous inline comment too. | |||||
/* | /* | ||||
* Session state, negotiated by iscsid(8) and queried by iscsictl(8). | * Session state, negotiated by iscsid(8) and queried by iscsictl(8). | ||||
*/ | */ | ||||
struct iscsi_session_state { | struct iscsi_session_state { | ||||
struct iscsi_session_conf iss_conf; | struct iscsi_session_conf iss_conf; | ||||
unsigned int iss_id; | unsigned int iss_id; | ||||
char iss_target_alias[ISCSI_ALIAS_LEN]; | char iss_target_alias[ISCSI_ALIAS_LEN]; | ||||
int iss_header_digest; | int iss_header_digest; | ||||
int iss_data_digest; | int iss_data_digest; | ||||
int iss_max_data_segment_length; | int iss_max_recv_data_segment_length; | ||||
int iss_max_burst_length; | int iss_max_burst_length; | ||||
int iss_first_burst_length; | int iss_first_burst_length; | ||||
int iss_immediate_data; | int iss_immediate_data; | ||||
int iss_connected; | int iss_connected; | ||||
char iss_reason[ISCSI_REASON_LEN]; | char iss_reason[ISCSI_REASON_LEN]; | ||||
char iss_offload[ISCSI_OFFLOAD_LEN]; | char iss_offload[ISCSI_OFFLOAD_LEN]; | ||||
int iss_spare[4]; | int iss_max_send_data_segment_length; | ||||
int iss_spare[3]; | |||||
}; | }; | ||||
/* | /* | ||||
* The following ioctls are used by iscsid(8). | * The following ioctls are used by iscsid(8). | ||||
*/ | */ | ||||
struct iscsi_daemon_request { | struct iscsi_daemon_request { | ||||
unsigned int idr_session_id; | unsigned int idr_session_id; | ||||
struct iscsi_session_conf idr_conf; | struct iscsi_session_conf idr_conf; | ||||
Show All 9 Lines | struct iscsi_daemon_handoff { | ||||
int idh_socket; | int idh_socket; | ||||
char idh_target_alias[ISCSI_ALIAS_LEN]; | char idh_target_alias[ISCSI_ALIAS_LEN]; | ||||
uint8_t idh_spare_isid[6]; | uint8_t idh_spare_isid[6]; | ||||
uint16_t idh_tsih; | uint16_t idh_tsih; | ||||
uint16_t idh_spare_cid; | uint16_t idh_spare_cid; | ||||
uint32_t idh_statsn; | uint32_t idh_statsn; | ||||
int idh_header_digest; | int idh_header_digest; | ||||
int idh_data_digest; | int idh_data_digest; | ||||
size_t idh_max_data_segment_length; | size_t spare[3]; | ||||
size_t idh_max_burst_length; | |||||
size_t idh_first_burst_length; | |||||
int idh_immediate_data; | int idh_immediate_data; | ||||
int idh_initial_r2t; | int idh_initial_r2t; | ||||
int idh_spare[4]; | int idh_max_recv_data_segment_length; | ||||
int idh_max_send_data_segment_length; | |||||
int idh_max_burst_length; | |||||
int idh_first_burst_length; | |||||
}; | }; | ||||
struct iscsi_daemon_fail { | struct iscsi_daemon_fail { | ||||
unsigned int idf_session_id; | unsigned int idf_session_id; | ||||
char idf_reason[ISCSI_REASON_LEN]; | char idf_reason[ISCSI_REASON_LEN]; | ||||
int idf_spare[4]; | int idf_spare[4]; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |
Again, why not size_t?