/titanic_44/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_comm.c | 99 static int ndmp_recv_msg(ndmp_connection_t *connection); 100 static int ndmp_process_messages(ndmp_connection_t *connection, 102 static ndmp_msg_handler_t *ndmp_get_handler(ndmp_connection_t *connection, 134 ndmp_connection_t * 137 ndmp_connection_t *connection; in ndmp_create_connection() 139 connection = ndmp_malloc(sizeof (ndmp_connection_t)); in ndmp_create_connection() 163 return ((ndmp_connection_t *)connection); in ndmp_create_connection() 178 ndmp_destroy_connection(ndmp_connection_t *connection_handle) in ndmp_destroy_connection() 180 ndmp_connection_t *connection = (ndmp_connection_t *)connection_handle; in ndmp_destroy_connection() 204 ndmp_close(ndmp_connection_t *connection_handle) in ndmp_close() [all …]
|
H A D | ndmpd_common.h | 88 } ndmp_connection_t; typedef 115 extern ndmp_connection_t *ndmp_create_connection(void); 117 extern void ndmp_destroy_connection(ndmp_connection_t *); 119 extern void ndmp_close(ndmp_connection_t *); 121 extern int ndmp_connect(ndmp_connection_t *, 128 extern int ndmp_process_requests(ndmp_connection_t *); 130 extern int ndmp_send_response(ndmp_connection_t *, 134 extern int ndmp_send_request(ndmp_connection_t *, 140 extern int ndmp_send_request_lock(ndmp_connection_t *, 146 extern void ndmp_free_message(ndmp_connection_t *); [all …]
|
H A D | ndmpd_scsi.c | 53 static void scsi_open_send_reply(ndmp_connection_t *connection, int err); 54 static void common_open(ndmp_connection_t *connection, char *devname); 55 static void common_set_target(ndmp_connection_t *connection, char *device, 78 ndmpd_scsi_open_v2(ndmp_connection_t *connection, void *body) in ndmpd_scsi_open_v2() 100 ndmpd_scsi_close_v2(ndmp_connection_t *connection, void *body) in ndmpd_scsi_close_v2() 150 ndmpd_scsi_get_state_v2(ndmp_connection_t *connection, void *body) in ndmpd_scsi_get_state_v2() 194 ndmpd_scsi_set_target_v2(ndmp_connection_t *connection, void *body) in ndmpd_scsi_set_target_v2() 220 ndmpd_scsi_reset_device_v2(ndmp_connection_t *connection, void *body) in ndmpd_scsi_reset_device_v2() 264 ndmpd_scsi_reset_bus_v2(ndmp_connection_t *connection, void *body) in ndmpd_scsi_reset_bus_v2() 289 ndmpd_scsi_execute_cdb_v2(ndmp_connection_t *connection, void *body) in ndmpd_scsi_execute_cdb_v2() [all …]
|
H A D | ndmpd_tape.c | 52 static void tape_open_send_reply(ndmp_connection_t *connection, int err); 56 static void common_tape_open(ndmp_connection_t *connection, char *devname, 58 static void common_tape_close(ndmp_connection_t *connection); 109 ndmpd_tape_open_v2(ndmp_connection_t *connection, void *body) in ndmpd_tape_open_v2() 243 ndmpd_tape_close_v2(ndmp_connection_t *connection, void *body) in ndmpd_tape_close_v2() 274 ndmpd_tape_get_state_v2(ndmp_connection_t *connection, void *body) in ndmpd_tape_get_state_v2() 350 ndmpd_tape_mtio_v2(ndmp_connection_t *connection, void *body) in ndmpd_tape_mtio_v2() 492 ndmpd_tape_read_v2(ndmp_connection_t *connection, void *body) in ndmpd_tape_read_v2() 541 ndmpd_tape_execute_cdb_v2(ndmp_connection_t *connection, void *body) in ndmpd_tape_execute_cdb_v2() 583 ndmpd_tape_open_v3(ndmp_connection_t *connection, void *body) in ndmpd_tape_open_v3() [all …]
|
H A D | ndmpd_config.c | 105 ndmpd_config_get_host_info_v2(ndmp_connection_t *connection, void *body) in ndmpd_config_get_host_info_v2() 160 ndmpd_config_get_butype_attr_v2(ndmp_connection_t *connection, void *body) in ndmpd_config_get_butype_attr_v2() 200 ndmpd_config_get_mover_type_v2(ndmp_connection_t *connection, void *body) in ndmpd_config_get_mover_type_v2() 232 ndmpd_config_get_auth_attr_v2(ndmp_connection_t *connection, void *body) in ndmpd_config_get_auth_attr_v2() 289 ndmpd_config_get_host_info_v3(ndmp_connection_t *connection, void *body) in ndmpd_config_get_host_info_v3() 342 ndmpd_config_get_connection_type_v3(ndmp_connection_t *connection, in ndmpd_config_get_connection_type_v3() 377 ndmpd_config_get_auth_attr_v3(ndmp_connection_t *connection, void *body) in ndmpd_config_get_auth_attr_v3() 429 ndmpd_config_get_butype_info_v3(ndmp_connection_t *connection, void *body) in ndmpd_config_get_butype_info_v3() 531 ndmpd_config_get_fs_info_v3(ndmp_connection_t *connection, void *body) in ndmpd_config_get_fs_info_v3() 683 ndmpd_config_get_tape_info_v3(ndmp_connection_t *connection, void *body) in ndmpd_config_get_tape_info_v3() [all …]
|
H A D | ndmpd_connect.c | 65 static struct conn_list *ndmp_connect_list_find(ndmp_connection_t *connection); 75 static void ndmp_connect_get_v2(ndmp_connection_t *connection, 85 static void ndmp_connect_get_v3(ndmp_connection_t *connection, 104 ndmp_connection_t *cl_conn; 142 ndmpd_connect_open_v2(ndmp_connection_t *connection, void *body) in ndmpd_connect_open_v2() 190 ndmpd_connect_client_auth_v2(ndmp_connection_t *connection, void *body) in ndmpd_connect_client_auth_v2() 353 ndmpd_connect_server_auth_v2(ndmp_connection_t *connection, void *body) in ndmpd_connect_server_auth_v2() 405 ndmpd_connect_close_v2(ndmp_connection_t *connection, void *body) in ndmpd_connect_close_v2() 434 ndmpd_connect_client_auth_v3(ndmp_connection_t *connection, void *body) in ndmpd_connect_client_auth_v3() 543 ndmpd_connect_close_v3(ndmp_connection_t *connection, void *body) in ndmpd_connect_close_v3() [all …]
|
H A D | ndmpd.h | 490 ndmp_connection_t *ns_connection; /* NDMP connection to client */ 682 typedef void ndmpd_func_t(ndmp_connection_t *, void *); 722 extern void connection_handler(ndmp_connection_t *); 723 extern void ndmpd_audit_backup(ndmp_connection_t *conn, char *path, 725 extern void ndmpd_audit_restore(ndmp_connection_t *conn, 727 extern void ndmpd_audit_connect(ndmp_connection_t *conn, 729 extern void ndmpd_audit_disconnect(ndmp_connection_t *conn); 738 extern int ndmp_connect_list_add(ndmp_connection_t *, int *); 739 extern int ndmp_connect_list_del(ndmp_connection_t *); 891 extern void ndmp_send_reply(ndmp_connection_t *, [all …]
|
H A D | ndmpd_data.c | 98 ndmpd_data_get_state_v2(ndmp_connection_t *connection, void *body) in ndmpd_data_get_state_v2() 139 ndmpd_data_start_backup_v2(ndmp_connection_t *connection, void *body) in ndmpd_data_start_backup_v2() 180 ndmpd_data_start_recover_v2(ndmp_connection_t *connection, void *body) in ndmpd_data_start_recover_v2() 222 ndmpd_data_get_env_v2(ndmp_connection_t *connection, void *body) in ndmpd_data_get_env_v2() 256 ndmpd_data_stop_v2(ndmp_connection_t *connection, void *body) in ndmpd_data_stop_v2() 299 ndmpd_data_abort_v2(ndmp_connection_t *connection, void *body) in ndmpd_data_abort_v2() 345 ndmpd_data_get_state_v3(ndmp_connection_t *connection, void *body) in ndmpd_data_get_state_v3() 393 ndmpd_data_start_backup_v3(ndmp_connection_t *connection, void *body) in ndmpd_data_start_backup_v3() 483 ndmpd_data_start_recover_v3(ndmp_connection_t *connection, void *body) in ndmpd_data_start_recover_v3() 567 ndmpd_data_abort_v3(ndmp_connection_t *connection, void *body) in ndmpd_data_abort_v3() [all …]
|
H A D | ndmpd_mover.c | 137 ndmpd_mover_get_state_v2(ndmp_connection_t *connection, void *body) in ndmpd_mover_get_state_v2() 177 ndmpd_mover_listen_v2(ndmp_connection_t *connection, void *body) in ndmpd_mover_listen_v2() 242 ndmpd_mover_continue_v2(ndmp_connection_t *connection, void *body) in ndmpd_mover_continue_v2() 276 ndmpd_mover_abort_v2(ndmp_connection_t *connection, void *body) in ndmpd_mover_abort_v2() 314 ndmpd_mover_stop_v2(ndmp_connection_t *connection, void *body) in ndmpd_mover_stop_v2() 354 ndmpd_mover_set_window_v2(ndmp_connection_t *connection, void *body) in ndmpd_mover_set_window_v2() 415 ndmpd_mover_read_v2(ndmp_connection_t *connection, void *body) in ndmpd_mover_read_v2() 477 ndmpd_mover_close_v2(ndmp_connection_t *connection, void *body) in ndmpd_mover_close_v2() 512 ndmpd_mover_set_record_size_v2(ndmp_connection_t *connection, void *body) in ndmpd_mover_set_record_size_v2() 551 ndmpd_mover_get_state_v3(ndmp_connection_t *connection, void *body) in ndmpd_mover_get_state_v3() [all …]
|
H A D | ndmpd_util.c | 133 ndmp_connection_t *cl_conn; 863 ndmp_send_reply(ndmp_connection_t *connection, void *reply, char *msg) in ndmp_send_reply() 1427 ndmp_open_list_add(ndmp_connection_t *conn, char *dev, int sid, int lun, int fd) in ndmp_open_list_add() 1532 ndmp_open_list_release(ndmp_connection_t *conn) in ndmp_open_list_release()
|