id
stringlengths
4
63
text
stringlengths
153
8.81M
isci_remote_device_alloc(9)
NAME isci_remote_device_alloc - SYNOPSIS struct isci_remote_device * isci_remote_device_alloc (struct isci_host *ihost , struct isci_port *iport ); ARGUMENTS ihost This parameter specifies the isci host object. iport This parameter specifies the isci_port connected to this device. DESCRIPTION Thi...
isci_remote_device_deconstruct(9)
NAME isci_remote_device_deconstruct - This function frees an isci_remote_device. SYNOPSIS void isci_remote_device_deconstruct (struct isci_host *ihost , struct isci_remote_device *idev ); ARGUMENTS ihost This parameter specifies the isci host object. idev This parameter specifies the remote devic...
isci_remote_device_found(9)
NAME isci_remote_device_found - This function is called by libsas when a remote device is discovered. A remote device object is created and started. the function then sleeps until the sci core device started message is re‐ ceived. SYNOPSIS int isci_remote_device_found (struct domain_device *dev ); ARGUMENTS dev ...
isci_remote_device_gone(9)
NAME isci_remote_device_gone - This function is called by libsas when a domain device is removed. SYNOPSIS void isci_remote_device_gone (struct domain_device *dev ); ARGUMENTS dev This parameter specifies the libsas domain device. SEE ALSO Kernel file ./drivers/scsi/isci/remote_device.c isci_remote_device...
isci_remote_device_not_ready(9)
NAME isci_remote_device_not_ready - This function is called by the ihost when the remote device is not ready. We mark the isci device as ready (not "ready_for_io") and signal the waiting proccess. SYNOPSIS void isci_remote_device_not_ready (struct isci_host *ihost , struct isci_remote_device *idev , u32 reason ); ARG...
isci_remote_device_ready(9)
NAME isci_remote_device_ready - This function is called by the ihost when the remote device is ready. We mark the isci device as ready and signal the waiting proccess. SYNOPSIS void isci_remote_device_ready (struct isci_host *ihost , struct isci_remote_device *idev ); ARGUMENTS ihost our valid isci_host ...
isci_remote_device_stop(9)
NAME isci_remote_device_stop - This function is called internally to stop the remote device. SYNOPSIS enum sci_status isci_remote_device_stop (struct isci_host *ihost , struct isci_remote_device *idev ); ARGUMENTS ihost This parameter specifies the isci host object. idev This parameter specifies ...
isci_request_handle_controller_specific_errors(9)
NAME isci_request_handle_controller_specific_errors - This function decodes controller-specific I/O completion error conditions. SYNOPSIS void isci_request_handle_controller_specific_errors (struct isci_remote_device *idev , struct isci_request *request , struct sas_task *task , enum service_response *response_ptr , e...
isci_request_process_response_iu(9)
NAME isci_request_process_response_iu - This function sets the status and response iu, in the task struct, from the request object for the upper layer driver. SYNOPSIS void isci_request_process_response_iu (struct sas_task *task , struct ssp_response_iu *resp_iu , struct device *dev ); ARGUMENTS task This para...
isci_request_set_open_reject_status(9)
NAME isci_request_set_open_reject_status - This function prepares the I/O completion for OPEN_REJECT conditions. SYNOPSIS void isci_request_set_open_reject_status (struct isci_request *request , struct sas_task *task , enum service_response *response_ptr , enum exec_status *status_ptr , enum sas_open_rej_reason open_r...
isci_task_abort_task(9)
NAME isci_task_abort_task - This function is one of the SAS Domain Template functions. This function is called by libsas to abort a specified task. SYNOPSIS int isci_task_abort_task (struct sas_task *task ); ARGUMENTS task This parameter specifies the SAS task to abort. DESCRIPTION status, zero indicates succ...
isci_task_abort_task_set(9)
NAME isci_task_abort_task_set - This function is one of the SAS Domain Template functions. This is one of the Task Management functoins called by libsas, to abort all task for the given lun. SYNOPSIS int isci_task_abort_task_set (struct domain_device *d_device , u8 *lun ); ARGUMENTS d_device This parameter specifi...
isci_task_clear_task_set(9)
NAME isci_task_clear_task_set - This function is one of the SAS Domain Template functions. This is one of the Task Management functoins called by libsas. SYNOPSIS int isci_task_clear_task_set (struct domain_device *d_device , u8 *lun ); ARGUMENTS d_device This parameter specifies the domain device associated with ...
isci_task_execute_task(9)
NAME isci_task_execute_task - This function is one of the SAS Domain Template functions. This function is called by libsas to send a task down to hardware. SYNOPSIS int isci_task_execute_task (struct sas_task *task , gfp_t gfp_flags ); ARGUMENTS task This parameter specifies the SAS task to send. gfp_f...
isci_task_query_task(9)
NAME isci_task_query_task - This function is implemented to cause libsas to correctly escalate the failed abort to a LUN or target reset (this is because sas_scsi_find_task libsas function does not correctly interpret all re‐ turn codes from the abort task call). When TMF_RESP_FUNC_SUCC is returned, libsas turns this ...
isci_task_refuse(9)
NAME isci_task_refuse - complete the request to the upper layer driver in the case where an I/O needs to be completed back in the submit path. SYNOPSIS void isci_task_refuse (struct isci_host *ihost , struct sas_task *task , enum service_response response , enum exec_status status ); ARGUMENTS ihost host on whi...
iscntrl(3)
NAME isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph, islower, isprint, ispunct, isspace, isupper, isxdigit, isalnum_l, isalpha_l, isascii_l, isblank_l, iscntrl_l, isdigit_l, isgraph_l, islower_l, isprint_l, ispunct_l, is‐ space_l, isupper_l, isxdigit_l - character classification functions LIBRARY S...
iscntrl(3p)
PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME iscntrl, iscntrl_l — test for a control character SYNOPSIS #in...
iscntrl_l(3)
NAME isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph, islower, isprint, ispunct, isspace, isupper, isxdigit, isalnum_l, isalpha_l, isascii_l, isblank_l, iscntrl_l, isdigit_l, isgraph_l, islower_l, isprint_l, ispunct_l, is‐ space_l, isupper_l, isxdigit_l - character classification functions LIBRARY S...
iscsi_add_conn(9)
NAME iscsi_add_conn - add iscsi class connection SYNOPSIS int iscsi_add_conn (struct iscsi_cls_conn *conn ); ARGUMENTS conn iscsi cls connection DESCRIPTION This will expose iscsi_cls_conn to sysfs so make sure the related resources for sysfs attributes are initialized before calling this. SEE ALSO Kernel ...
iscsi_alloc_conn(9)
NAME iscsi_alloc_conn - alloc iscsi class connection SYNOPSIS struct iscsi_cls_conn * iscsi_alloc_conn (struct iscsi_cls_session *session , int dd_size , uint32_t cid ); ARGUMENTS session iscsi cls session dd_size private driver data size cid connection id SEE ALSO Kernel file ....
iscsi_alloc_mgmt_task(9)
NAME iscsi_alloc_mgmt_task - allocate and setup a mgmt task. SYNOPSIS struct iscsi_task * iscsi_alloc_mgmt_task (struct iscsi_conn *conn , struct iscsi_hdr *hdr , char *data , uint32_t data_size ); ARGUMENTS conn iscsi conn that the task will be sent on. hdr iscsi pdu that will be sent. ...
iscsi_block_scsi_eh(9)
NAME iscsi_block_scsi_eh - block scsi eh until session state has transistioned SYNOPSIS int iscsi_block_scsi_eh (struct scsi_cmnd *cmd ); ARGUMENTS cmd scsi cmd passed to scsi eh handler DESCRIPTION If the session is down this function will wait for the recovery timer to fire or for the session to be logged...
iscsi_boot_create_acpitbl(9)
NAME iscsi_boot_create_acpitbl - create boot acpi table sysfs dir SYNOPSIS struct iscsi_boot_kobj * iscsi_boot_create_acpitbl (struct iscsi_boot_kset *boot_kset , int index , void *data , ssize_t (*show)(void *data, int type, char *buf) , umode_t (*is_visible)(void *data, int type) , void (*re‐ lease)(void *data) ); ...
iscsi_boot_create_ethernet(9)
NAME iscsi_boot_create_ethernet - create boot ethernet sysfs dir SYNOPSIS struct iscsi_boot_kobj * iscsi_boot_create_ethernet (struct iscsi_boot_kset *boot_kset , int index , void *data , ssize_t (*show) (void *data, int type, char *buf) , umode_t (*is_visible) (void *data, int type) , void (*release) (void *data)...
iscsi_boot_create_host_kset(9)
NAME iscsi_boot_create_host_kset - creates root sysfs tree for a scsi host SYNOPSIS struct iscsi_boot_kset * iscsi_boot_create_host_kset (unsigned int hostno ); ARGUMENTS hostno host number of scsi host SEE ALSO Kernel file ./drivers/scsi/iscsi_boot_sysfs.c iscsi_boot_create_target(9), iscsi_boot_create_initiat...
iscsi_boot_create_initiator(9)
NAME iscsi_boot_create_initiator - create boot initiator sysfs dir SYNOPSIS struct iscsi_boot_kobj * iscsi_boot_create_initiator (struct iscsi_boot_kset *boot_kset , int index , void *data , ssize_t (*show) (void *data, int type, char *buf) , umode_t (*is_visible) (void *data, int type) , void (*release) (void *dat...
iscsi_boot_create_kset(9)
NAME iscsi_boot_create_kset - creates root sysfs tree SYNOPSIS struct iscsi_boot_kset * iscsi_boot_create_kset (const char *set_name ); ARGUMENTS set_name name of root dir SEE ALSO Kernel file ./drivers/scsi/iscsi_boot_sysfs.c iscsi_boot_create_target(9), iscsi_boot_create_initiator(9), iscsi_boot_create_eth...
iscsi_boot_create_target(9)
NAME iscsi_boot_create_target - create boot target sysfs dir SYNOPSIS struct iscsi_boot_kobj * iscsi_boot_create_target (struct iscsi_boot_kset *boot_kset , int index , void *data , ssize_t (*show) (void *data, int type, char *buf) , umode_t (*is_visible) (void *data, int type) , void (*re‐ lease) (void *data) ); ARG...
iscsi_boot_destroy_kset(9)
NAME iscsi_boot_destroy_kset - destroy kset and kobjects under it SYNOPSIS void iscsi_boot_destroy_kset (struct iscsi_boot_kset *boot_kset ); ARGUMENTS boot_kset boot kset DESCRIPTION This will remove the kset and kobjects and attrs under it. SEE ALSO Kernel file ./drivers/scsi/iscsi_boot_sysfs.c iscsi_boot...
iscsi_bsg_host_add(9)
NAME iscsi_bsg_host_add - Create and add the bsg hooks to receive requests SYNOPSIS int iscsi_bsg_host_add (struct Scsi_Host *shost , struct iscsi_cls_host *ihost ); ARGUMENTS shost shost for iscsi_host ihost iscsi_cls_host adding the structures to SEE ALSO Kernel file ./drivers/scsi/scsi_t...
iscsi_bsg_host_dispatch(9)
NAME iscsi_bsg_host_dispatch - Dispatch command to LLD. SYNOPSIS int iscsi_bsg_host_dispatch (struct bsg_job *job ); ARGUMENTS job bsg job to be processed SEE ALSO Kernel file ./drivers/scsi/scsi_transport_iscsi.c iscsi_lookup_endpoint(9), iscsi_create_flashnode_sess(9), iscsi_create_flashnode_c...
iscsi_check_tmf_restrictions(9)
NAME iscsi_check_tmf_restrictions - check if a task is affected by TMF SYNOPSIS int iscsi_check_tmf_restrictions (struct iscsi_task *task , int opcode ); ARGUMENTS task iscsi task opcode opcode to check for DESCRIPTION During TMF a task has to be checked if it's affected. All unrelated I/O ca...
iscsi_complete_scsi_task(9)
NAME iscsi_complete_scsi_task - finish scsi task normally SYNOPSIS void iscsi_complete_scsi_task (struct iscsi_task *task , uint32_t exp_cmdsn , uint32_t max_cmdsn ); ARGUMENTS task iscsi task for scsi cmd exp_cmdsn expected cmd sn in cpu format max_cmdsn max cmd sn in cpu format DESCRIPTI...
iscsi_complete_task(9)
NAME iscsi_complete_task - finish a task SYNOPSIS void iscsi_complete_task (struct iscsi_task *task , int state ); ARGUMENTS task iscsi cmd task state state to complete task with DESCRIPTION Must be called with session back_lock. SEE ALSO Kernel file ./drivers/scsi/libiscsi.c iscsi_prep_d...
iscsi_conn_setup(9)
NAME iscsi_conn_setup - create iscsi_cls_conn and iscsi_conn SYNOPSIS struct iscsi_cls_conn * iscsi_conn_setup (struct iscsi_cls_session *cls_session , int dd_size , uint32_t conn_idx ); ARGUMENTS cls_session iscsi_cls_session dd_size private driver data size conn_idx cid SEE ALSO Kernel file...
iscsi_conn_teardown(9)
NAME iscsi_conn_teardown - teardown iscsi connection SYNOPSIS void iscsi_conn_teardown (struct iscsi_cls_conn *cls_conn ); ARGUMENTS cls_conn iscsi class connection DESCRIPTION TODO: we may need to make this into a two step process like scsi-mls remove + put host SEE ALSO Kernel file ./drivers/scsi/libiscsi.c i...
iscsi_conn_unbind(9)
NAME iscsi_conn_unbind - prevent queueing to conn. SYNOPSIS void iscsi_conn_unbind (struct iscsi_cls_conn *cls_conn , bool is_active ); ARGUMENTS cls_conn iscsi conn ep is bound to. is_active is the conn in use for boot or is this for EH/termination DESCRIPTION This must be called by drivers implementin...
iscsi_create_flashnode_conn(9)
NAME iscsi_create_flashnode_conn - Add flashnode conn entry in sysfs SYNOPSIS struct iscsi_bus_flash_conn * iscsi_create_flashnode_conn (struct Scsi_Host *shost , struct iscsi_bus_flash_session *fnode_sess , struct iscsi_transport *transport , int dd_size ); ARGUMENTS shost pointer to host data fnode_se...
iscsi_create_flashnode_sess(9)
NAME iscsi_create_flashnode_sess - Add flashnode session entry in sysfs SYNOPSIS struct iscsi_bus_flash_session * iscsi_create_flashnode_sess (struct Scsi_Host *shost , int index , struct iscsi_transport *transport , int dd_size ); ARGUMENTS shost pointer to host data index index of flashnode to a...
iscsi_data_in_rsp(9)
NAME iscsi_data_in_rsp - SCSI Data-In Response processing SYNOPSIS void iscsi_data_in_rsp (struct iscsi_conn *conn , struct iscsi_hdr *hdr , struct iscsi_task *task ); ARGUMENTS conn iscsi connection hdr iscsi pdu task scsi command task DESCRIPTION iscsi_data_in_rsp sets up the ...
iscsi_data_xmit(9)
NAME iscsi_data_xmit - xmit any command into the scheduled connection SYNOPSIS int iscsi_data_xmit (struct iscsi_conn *conn ); ARGUMENTS conn iscsi connection NOTES The function can return -EAGAIN in which case the caller must re-schedule it again later or recover. '0' return code means successful xmit. SEE ...
iscsi_destroy_all_flashnode(9)
NAME iscsi_destroy_all_flashnode - destroy all flashnode session entries SYNOPSIS void iscsi_destroy_all_flashnode (struct Scsi_Host *shost ); ARGUMENTS shost pointer to host data DESCRIPTION Destroys all the flashnode session entries and all corresponding children flashnode connection entries from sysfs SEE ...
iscsi_destroy_flashnode_sess(9)
NAME iscsi_destroy_flashnode_sess - destroy flashnode session entry SYNOPSIS void iscsi_destroy_flashnode_sess (struct iscsi_bus_flash_session *fnode_sess ); ARGUMENTS fnode_sess pointer to flashnode session entry to be destroyed DESCRIPTION Deletes the flashnode session entry and all children flashnode connection ...
iscsi_eh_recover_target(9)
NAME iscsi_eh_recover_target - reset target and possibly the session SYNOPSIS int iscsi_eh_recover_target (struct scsi_cmnd *sc ); ARGUMENTS sc scsi command DESCRIPTION This will attempt to send a warm target reset. If that fails, we will escalate to ERL0 session recovery. SEE ALSO Kernel file ./drivers/s...
iscsi_eh_session_reset(9)
NAME iscsi_eh_session_reset - drop session and attempt relogin SYNOPSIS int iscsi_eh_session_reset (struct scsi_cmnd *sc ); ARGUMENTS sc scsi command DESCRIPTION This function will wait for a relogin, session termination from userspace, or a recovery/replacement timeout. SEE ALSO Kernel file ./drivers/scs...
iscsi_eh_target_reset(9)
NAME iscsi_eh_target_reset - reset target SYNOPSIS int iscsi_eh_target_reset (struct scsi_cmnd *sc ); ARGUMENTS sc scsi command DESCRIPTION This will attempt to send a warm target reset. SEE ALSO Kernel file ./drivers/scsi/libiscsi.c iscsi_prep_data_out_pdu(9), iscsi_check_tmf_restrictions(9), iscsi_prep_...
iscsi_find_flashnode_conn(9)
NAME iscsi_find_flashnode_conn - finds flashnode connection entry SYNOPSIS struct device * iscsi_find_flashnode_conn (struct iscsi_bus_flash_session *fnode_sess ); ARGUMENTS fnode_sess pointer to parent flashnode session entry DESCRIPTION Finds the flashnode connection object comparing the data passed using logic d...
iscsi_find_flashnode_sess(9)
NAME iscsi_find_flashnode_sess - finds flashnode session entry SYNOPSIS struct device * iscsi_find_flashnode_sess (struct Scsi_Host *shost , const void *data , device_match_t fn ); ARGUMENTS shost pointer to host data data pointer to data containing value to use for comparison fn ...
iscsi_force_destroy_session(9)
NAME iscsi_force_destroy_session - destroy a session from the kernel SYNOPSIS void iscsi_force_destroy_session (struct iscsi_cls_session *session ); ARGUMENTS session session to destroy DESCRIPTION Force the destruction of a session from the kernel. This should only be used when userspace is no longer running du...
iscsi_free_task(9)
NAME iscsi_free_task - free a task SYNOPSIS void iscsi_free_task (struct iscsi_task *task ); ARGUMENTS task iscsi cmd task DESCRIPTION Must be called with session back_lock. This function returns the scsi command to scsi-ml or cleans up mgmt tasks then returns the task to the pool. SEE ALSO Kernel file ...
iscsi_get_flashnode_by_index(9)
NAME iscsi_get_flashnode_by_index - finds flashnode session entry by index SYNOPSIS struct iscsi_bus_flash_session * iscsi_get_flashnode_by_index (struct Scsi_Host *shost , uint32_t idx ); ARGUMENTS shost pointer to host data idx index to match DESCRIPTION Finds the flashnode session object for...
iscsi_host_add(9)
NAME iscsi_host_add - add host to system SYNOPSIS int iscsi_host_add (struct Scsi_Host *shost , struct device *pdev ); ARGUMENTS shost scsi host pdev parent device DESCRIPTION This should be called by partial offload and software iscsi drivers to add a host to the system. SEE ALSO Kernel file ...
iscsi_host_alloc(9)
NAME iscsi_host_alloc - allocate a host and driver data SYNOPSIS struct Scsi_Host * iscsi_host_alloc (const struct scsi_host_template *sht , int dd_data_size , bool xmit_can_sleep ); ARGUMENTS sht scsi host template dd_data_size driver host data size xmit_can_sleep ...
iscsi_host_remove(9)
NAME iscsi_host_remove - remove host and sessions SYNOPSIS void iscsi_host_remove (struct Scsi_Host *shost , bool is_shutdown ); ARGUMENTS shost scsi host is_shutdown true if called from a driver shutdown callout DESCRIPTION If there are any sessions left, this will initiate the removal and wait for th...
iscsi_is_flashnode_conn_dev(9)
NAME iscsi_is_flashnode_conn_dev - verify passed device is to be flashnode conn SYNOPSIS int iscsi_is_flashnode_conn_dev (struct device *dev , const void *data ); ARGUMENTS dev device to verify data pointer to data containing value to use for verification DESCRIPTION Verifies if the passed dev...
iscsi_iser_check_protection(9)
NAME iscsi_iser_check_protection - check protection information status of task. SYNOPSIS u8 iscsi_iser_check_protection (struct iscsi_task *task , sector_t *sector ); ARGUMENTS task iscsi task sector error sector if exsists (output) RETURN zero if no data-integrity errors have occurred 0x1: data-...
iscsi_iser_cleanup_task(9)
NAME iscsi_iser_cleanup_task - cleanup an iscsi-iser task SYNOPSIS void iscsi_iser_cleanup_task (struct iscsi_task *task ); ARGUMENTS task iscsi task NOTES In case the RDMA device is already NULL (might have been removed in DEVICE_REMOVAL CM event it will bail-out without doing dma unmapping. SEE ALSO Kernel...
iscsi_iser_conn_bind(9)
NAME iscsi_iser_conn_bind - bind iscsi and iser connection structures SYNOPSIS int iscsi_iser_conn_bind (struct iscsi_cls_session *cls_session , struct iscsi_cls_conn *cls_conn , uint64_t transport_eph , int is_leading ); ARGUMENTS cls_session iscsi class session cls_conn iscsi class connection tra...
iscsi_iser_conn_create(9)
NAME iscsi_iser_conn_create - create a new iscsi-iser connection SYNOPSIS struct iscsi_cls_conn * iscsi_iser_conn_create (struct iscsi_cls_session *cls_session , uint32_t conn_idx ); ARGUMENTS cls_session iscsi class connection conn_idx connection index within the session (for MCS) RETURN iscsi_cls_conn w...
iscsi_iser_conn_get_stats(9)
NAME iscsi_iser_conn_get_stats - get iscsi connection statistics SYNOPSIS void iscsi_iser_conn_get_stats (struct iscsi_cls_conn *cls_conn , struct iscsi_stats *stats ); ARGUMENTS cls_conn iscsi class connection stats iscsi stats to output DESCRIPTION Output connection statistics. SEE ALSO Kernel ...
iscsi_iser_conn_start(9)
NAME iscsi_iser_conn_start - start iscsi-iser connection SYNOPSIS int iscsi_iser_conn_start (struct iscsi_cls_conn *cls_conn ); ARGUMENTS cls_conn iscsi class connection NOTES Here iser intialize (or re-initialize) stop_completion as from this point iscsi must call conn_stop in session/connection teardown so iser...
iscsi_iser_conn_stop(9)
NAME iscsi_iser_conn_stop - stop iscsi-iser connection SYNOPSIS void iscsi_iser_conn_stop (struct iscsi_cls_conn *cls_conn , int flag ); ARGUMENTS cls_conn iscsi class connection flag indicate if recover or terminate (passed as is) NOTES Calling iscsi_conn_stop might theoretically race with DEVICE_...
iscsi_iser_ep_connect(9)
NAME iscsi_iser_ep_connect - Initiate iSER connection establishment SYNOPSIS struct iscsi_endpoint * iscsi_iser_ep_connect (struct Scsi_Host *shost , struct sockaddr *dst_addr , int non_blocking ); ARGUMENTS shost scsi_host dst_addr destination address non_blocking indicate...
iscsi_iser_ep_disconnect(9)
NAME iscsi_iser_ep_disconnect - Initiate connection teardown process SYNOPSIS void iscsi_iser_ep_disconnect (struct iscsi_endpoint *ep ); ARGUMENTS ep iscsi endpoint handle DESCRIPTION This routine is not blocked by iser and RDMA termination process completion as we queue a deffered work for iser/RDMA de...
iscsi_iser_ep_poll(9)
NAME iscsi_iser_ep_poll - poll for iser connection establishment to complete SYNOPSIS int iscsi_iser_ep_poll (struct iscsi_endpoint *ep , int timeout_ms ); ARGUMENTS ep iscsi endpoint (created at ep_connect) timeout_ms polling timeout allowed in ms. DESCRIPTION This routine boils down to waiting fo...
iscsi_iser_mtask_xmit(9)
NAME iscsi_iser_mtask_xmit - xmit management (immediate) task SYNOPSIS int iscsi_iser_mtask_xmit (struct iscsi_conn *conn , struct iscsi_task *task ); ARGUMENTS conn iscsi connection task task management task NOTES The function can return -EAGAIN in which case caller must call it again later, o...
iscsi_iser_pdu_alloc(9)
NAME iscsi_iser_pdu_alloc - allocate an iscsi-iser PDU SYNOPSIS int iscsi_iser_pdu_alloc (struct iscsi_task *task , uint8_t opcode ); ARGUMENTS task iscsi task opcode iscsi command opcode DESCRIPTION Netes: This routine can't fail, just assign iscsi task hdr and max hdr size. SEE ALSO Kernel fi...
iscsi_iser_session_create(9)
NAME iscsi_iser_session_create - create an iscsi-iser session SYNOPSIS struct iscsi_cls_session * iscsi_iser_session_create (struct iscsi_endpoint *ep , uint16_t cmds_max , uint16_t qdepth , uint32_t initial_cmdsn ); ARGUMENTS ep iscsi end-point handle cmds_max maximum commands in this session ...
iscsi_iser_session_destroy(9)
NAME iscsi_iser_session_destroy - destroy iscsi-iser session SYNOPSIS void iscsi_iser_session_destroy (struct iscsi_cls_session *cls_session ); ARGUMENTS cls_session iscsi class session DESCRIPTION Removes and free iscsi host. SEE ALSO Kernel file ./drivers/infiniband/ulp/iser/iscsi_iser.c iscsi_iser_pdu_alloc(9...
iscsi_iser_task_init(9)
NAME iscsi_iser_task_init - Initialize iscsi-iser task SYNOPSIS int iscsi_iser_task_init (struct iscsi_task *task ); ARGUMENTS task iscsi task DESCRIPTION Initialize the task for the scsi command or mgmt command. RETURN Returns zero on success or -ENOMEM when failing to init task headers (dma mapping error)....
iscsi_iser_task_xmit(9)
NAME iscsi_iser_task_xmit - xmit iscsi-iser task SYNOPSIS int iscsi_iser_task_xmit (struct iscsi_task *task ); ARGUMENTS task iscsi task RETURN zero on success or escalates $error on failure. SEE ALSO Kernel file ./drivers/infiniband/ulp/iser/iscsi_iser.c iscsi_iser_pdu_alloc(9), iser_initialize_task_hea...
iscsi_itt_to_ctask(9)
NAME iscsi_itt_to_ctask - look up ctask by itt SYNOPSIS struct iscsi_task * iscsi_itt_to_ctask (struct iscsi_conn *conn , itt_t itt ); ARGUMENTS conn iscsi connection itt itt DESCRIPTION This should be used for cmd tasks. The session back_lock must be held. SEE ALSO Kernel file ./drivers/sc...
iscsi_itt_to_task(9)
NAME iscsi_itt_to_task - look up task by itt SYNOPSIS struct iscsi_task * iscsi_itt_to_task (struct iscsi_conn *conn , itt_t itt ); ARGUMENTS conn iscsi connection itt itt DESCRIPTION This should be used for mgmt tasks like login and nops, or if the LDD's itt space does not include the session...
iscsi_lookup_endpoint(9)
NAME iscsi_lookup_endpoint - get ep from handle SYNOPSIS struct iscsi_endpoint * iscsi_lookup_endpoint (u64 handle ); ARGUMENTS handle endpoint handle DESCRIPTION Caller must do a iscsi_put_endpoint. SEE ALSO Kernel file ./drivers/scsi/scsi_transport_iscsi.c iscsi_create_flashnode_sess(9), iscsi_create...
iscsi_nop_out_rsp(9)
NAME iscsi_nop_out_rsp - SCSI NOP Response processing SYNOPSIS int iscsi_nop_out_rsp (struct iscsi_task *task , struct iscsi_nopin *nop , char *data , int datalen ); ARGUMENTS task scsi command task nop the nop structure data where to put the data datalen length of da...
iscsi_prep_data_out_pdu(9)
NAME iscsi_prep_data_out_pdu - initialize Data-Out SYNOPSIS void iscsi_prep_data_out_pdu (struct iscsi_task *task , struct iscsi_r2t_info *r2t , struct iscsi_data *hdr ); ARGUMENTS task scsi command task r2t R2T info hdr iscsi data in pdu NOTES Initialize Data-Out within this R...
iscsi_prep_scsi_cmd_pdu(9)
NAME iscsi_prep_scsi_cmd_pdu - prep iscsi scsi cmd pdu SYNOPSIS int iscsi_prep_scsi_cmd_pdu (struct iscsi_task *task ); ARGUMENTS task iscsi task DESCRIPTION Prep basic iSCSI PDU fields for a scsi cmd pdu. The LLD should set fields like dlength or final based on how much data it sends SEE ALSO Kernel file ...
iscsi_remove_conn(9)
NAME iscsi_remove_conn - remove iscsi class connection from sysfs SYNOPSIS void iscsi_remove_conn (struct iscsi_cls_conn *conn ); ARGUMENTS conn iscsi cls connection DESCRIPTION Remove iscsi_cls_conn from sysfs, and wait for previous read/write of iscsi_cls_conn's attributes in sysfs to finish. SEE ALSO Kern...
iscsi_requeue_task(9)
NAME iscsi_requeue_task - requeue task to run from session workqueue SYNOPSIS void iscsi_requeue_task (struct iscsi_task *task ); ARGUMENTS task task to requeue DESCRIPTION Callers must have taken a ref to the task that is going to be requeued. SEE ALSO Kernel file ./drivers/scsi/libiscsi.c iscsi_prep_data_...
iscsi_scsi_cmd_rsp(9)
NAME iscsi_scsi_cmd_rsp - SCSI Command Response processing SYNOPSIS void iscsi_scsi_cmd_rsp (struct iscsi_conn *conn , struct iscsi_hdr *hdr , struct iscsi_task *task , char *data , int datalen ); ARGUMENTS conn iscsi connection hdr iscsi header task scsi command task dat...
iscsi_send_mgmt_task(9)
NAME iscsi_send_mgmt_task - Send task created with iscsi_alloc_mgmt_task. SYNOPSIS int iscsi_send_mgmt_task (struct iscsi_task *task ); ARGUMENTS task iscsi task to send. DESCRIPTION On failure this returns a non-zero error code, and the driver must free the task with iscsi_put_task; SEE ALSO Kernel file ./...
iscsi_session_event(9)
NAME iscsi_session_event - send session destr. completion event SYNOPSIS int iscsi_session_event (struct iscsi_cls_session *session , enum iscsi_uevent_e event ); ARGUMENTS session iscsi class session event type of event SEE ALSO Kernel file ./drivers/scsi/scsi_transport_iscsi.c iscsi_look...
iscsi_session_free(9)
NAME iscsi_session_free - Free iscsi session and it's resources SYNOPSIS void iscsi_session_free (struct iscsi_cls_session *cls_session ); ARGUMENTS cls_session iscsi session SEE ALSO Kernel file ./drivers/scsi/libiscsi.c iscsi_prep_data_out_pdu(9), iscsi_check_tmf_restrictions(9), iscsi_prep_scsi_cmd_pdu(9), iscsi...
iscsi_session_setup(9)
NAME iscsi_session_setup - create iscsi cls session and host and session SYNOPSIS struct iscsi_cls_session * iscsi_session_setup (struct iscsi_transport *iscsit , struct Scsi_Host *shost , uint16_t cmds_max , int dd_size , int cmd_task_size , uint32_t initial_cmdsn , unsigned int id ); ARGUMENTS iscsit iscsi tra...
iscsi_session_teardown(9)
NAME iscsi_session_teardown - destroy session and cls_session SYNOPSIS void iscsi_session_teardown (struct iscsi_cls_session *cls_session ); ARGUMENTS cls_session iscsi session SEE ALSO Kernel file ./drivers/scsi/libiscsi.c iscsi_prep_data_out_pdu(9), iscsi_check_tmf_restrictions(9), iscsi_prep_scsi_cmd_pdu(9), isc...
iscsi_suspend_queue(9)
NAME iscsi_suspend_queue - suspend iscsi_queuecommand SYNOPSIS void iscsi_suspend_queue (struct iscsi_conn *conn ); ARGUMENTS conn iscsi conn to stop queueing IO on DESCRIPTION This grabs the session frwd_lock to make sure no one is in xmit_task/queuecommand, and then sets suspend to prevent new commands fro...
iscsi_suspend_rx(9)
NAME iscsi_suspend_rx - Prevent recvwork from running again. SYNOPSIS void iscsi_suspend_rx (struct iscsi_conn *conn ); ARGUMENTS conn iscsi conn to stop. SEE ALSO Kernel file ./drivers/scsi/libiscsi.c iscsi_prep_data_out_pdu(9), iscsi_check_tmf_restrictions(9), iscsi_prep_scsi_cmd_pdu(9), iscsi_free_ta...
iscsi_suspend_tx(9)
NAME iscsi_suspend_tx - suspend iscsi_data_xmit SYNOPSIS void iscsi_suspend_tx (struct iscsi_conn *conn ); ARGUMENTS conn iscsi conn to stop processing IO on. DESCRIPTION This function sets the suspend bit to prevent iscsi_data_xmit from sending new IO, and if work is queued on the xmit thread it will wait fo...
iscsi_sw_sk_state_check(9)
NAME iscsi_sw_sk_state_check - check socket state SYNOPSIS int iscsi_sw_sk_state_check (struct sock *sk ); ARGUMENTS sk socket DESCRIPTION If the socket is in CLOSE or CLOSE_WAIT we should not close the connection if there is still some data pending. Must be called with sk_callback_lock. SEE ALSO Kernel f...
iscsi_sw_tcp_recv(9)
NAME iscsi_sw_tcp_recv - TCP receive in sendfile fashion SYNOPSIS int iscsi_sw_tcp_recv (read_descriptor_t *rd_desc , struct sk_buff *skb , unsigned int offset , size_t len ); ARGUMENTS rd_desc read descriptor skb socket buffer offset offset in skb len skb->len - offse...
iscsi_sw_tcp_write_space(9)
NAME iscsi_sw_tcp_write_space - Called when more output buffer space is available SYNOPSIS void iscsi_sw_tcp_write_space (struct sock *sk ); ARGUMENTS sk socket space is available for SEE ALSO Kernel file ./drivers/scsi/iscsi_tcp.c iscsi_sw_tcp_recv(9), iscsi_sw_sk_state_check(9), iscsi_sw_tcp_xmit_segment(...
iscsi_sw_tcp_xmit(9)
NAME iscsi_sw_tcp_xmit - TCP transmit SYNOPSIS int iscsi_sw_tcp_xmit (struct iscsi_conn *conn ); ARGUMENTS conn iscsi connection SEE ALSO Kernel file ./drivers/scsi/iscsi_tcp.c iscsi_sw_tcp_recv(9), iscsi_sw_sk_state_check(9), iscsi_sw_tcp_write_space(9), iscsi_sw_tcp_xmit_segment(9), iscsi_sw_tcp_xmit_qlen(9...
iscsi_sw_tcp_xmit_qlen(9)
NAME iscsi_sw_tcp_xmit_qlen - return the number of bytes queued for xmit SYNOPSIS int iscsi_sw_tcp_xmit_qlen (struct iscsi_conn *conn ); ARGUMENTS conn iscsi connection SEE ALSO Kernel file ./drivers/scsi/iscsi_tcp.c iscsi_sw_tcp_recv(9), iscsi_sw_sk_state_check(9), iscsi_sw_tcp_write_space(9), iscsi_sw_tcp_x...
iscsi_sw_tcp_xmit_segment(9)
NAME iscsi_sw_tcp_xmit_segment - transmit segment SYNOPSIS int iscsi_sw_tcp_xmit_segment (struct iscsi_tcp_conn *tcp_conn , struct iscsi_segment *segment ); ARGUMENTS tcp_conn the iSCSI TCP connection segment the buffer to transmnit DESCRIPTION This function transmits as much of the buffer as the net...
iscsi_tcp_cleanup_task(9)
NAME iscsi_tcp_cleanup_task - free tcp_task resources SYNOPSIS void iscsi_tcp_cleanup_task (struct iscsi_task *task ); ARGUMENTS task iscsi task DESCRIPTION must be called with session back_lock SEE ALSO Kernel file ./drivers/scsi/libiscsi_tcp.c iscsi_tcp_segment_init_sg(9), iscsi_tcp_segment_map...
iscsi_tcp_data_in(9)
NAME iscsi_tcp_data_in - SCSI Data-In Response processing SYNOPSIS int iscsi_tcp_data_in (struct iscsi_conn *conn , struct iscsi_task *task ); ARGUMENTS conn iscsi connection task scsi command task SEE ALSO Kernel file ./drivers/scsi/libiscsi_tcp.c iscsi_tcp_segment_init_sg(9), iscsi_tc...
iscsi_tcp_hdr_dissect(9)
NAME iscsi_tcp_hdr_dissect - process PDU header SYNOPSIS int iscsi_tcp_hdr_dissect (struct iscsi_conn *conn , struct iscsi_hdr *hdr ); ARGUMENTS conn iSCSI connection hdr PDU header DESCRIPTION This function analyzes the header of the PDU received, and performs several sanity checks. If the PD...
iscsi_tcp_hdr_recv_done(9)
NAME iscsi_tcp_hdr_recv_done - process PDU header SYNOPSIS int iscsi_tcp_hdr_recv_done (struct iscsi_tcp_conn *tcp_conn , struct iscsi_segment *segment ); ARGUMENTS tcp_conn iSCSI TCP connection segment the buffer segment being processed DESCRIPTION This is the callback invoked when the PDU header has...
iscsi_tcp_hdr_recv_prep(9)
NAME iscsi_tcp_hdr_recv_prep - prep segment for hdr reception SYNOPSIS void iscsi_tcp_hdr_recv_prep (struct iscsi_tcp_conn *tcp_conn ); ARGUMENTS tcp_conn iscsi connection to prep for DESCRIPTION This function always passes NULL for the crcp argument, because when this function is called we do not yet know the fi...