id
stringlengths
4
63
text
stringlengths
153
8.81M
fc_block_rport(9)
NAME fc_block_rport - Block SCSI eh thread for blocked fc_rport. SYNOPSIS int fc_block_rport (struct fc_rport *rport ); ARGUMENTS rport Remote port that scsi_eh is trying to recover. DESCRIPTION This routine can be called from a FC LLD scsi_eh callback. It blocks the scsi_eh thread until the fc_rport leaves th...
fc_block_scsi_eh(9)
NAME fc_block_scsi_eh - Block SCSI eh thread for blocked fc_rport SYNOPSIS int fc_block_scsi_eh (struct scsi_cmnd *cmnd ); ARGUMENTS cmnd SCSI command that scsi_eh is trying to recover DESCRIPTION This routine can be called from a FC LLD scsi_eh callback. It blocks the scsi_eh thread until the fc_rport leaves...
fc_bsg_host_dispatch(9)
NAME fc_bsg_host_dispatch - process fc host bsg requests and dispatch to LLDD SYNOPSIS int fc_bsg_host_dispatch (struct Scsi_Host *shost , struct bsg_job *job ); ARGUMENTS shost scsi host rport attached to job bsg job to be processed SEE ALSO Kernel file ./drivers/scsi/scsi_transport_fc.c fc...
fc_bsg_hostadd(9)
NAME fc_bsg_hostadd - Create and add the bsg hooks so we can receive requests SYNOPSIS int fc_bsg_hostadd (struct Scsi_Host *shost , struct fc_host_attrs *fc_host ); ARGUMENTS shost shost for fc_host fc_host fc_host adding the structures to SEE ALSO Kernel file ./drivers/scsi/scsi_transport_fc.c ...
fc_bsg_job_timeout(9)
NAME fc_bsg_job_timeout - handler for when a bsg request timesout SYNOPSIS enum blk_eh_timer_return fc_bsg_job_timeout (struct request *req ); ARGUMENTS req request that timed out SEE ALSO Kernel file ./drivers/scsi/scsi_transport_fc.c fc_get_event_number(9), fc_host_post_fc_event(9), fc_host_post_event(9)...
fc_bsg_remove(9)
NAME fc_bsg_remove - Deletes the bsg hooks on fchosts/rports SYNOPSIS void fc_bsg_remove (struct request_queue *q ); ARGUMENTS q the request_queue that is to be torn down. NOTES Before unregistering the queue empty any requests that are blocked SEE ALSO Kernel file ./drivers/scsi/scsi_transport_fc.c fc...
fc_bsg_rport_dispatch(9)
NAME fc_bsg_rport_dispatch - process rport bsg requests and dispatch to LLDD SYNOPSIS int fc_bsg_rport_dispatch (struct Scsi_Host *shost , struct bsg_job *job ); ARGUMENTS shost scsi host rport attached to job bsg job to be processed SEE ALSO Kernel file ./drivers/scsi/scsi_transport_fc.c fc...
fc_bsg_rportadd(9)
NAME fc_bsg_rportadd - Create and add the bsg hooks so we can receive requests SYNOPSIS int fc_bsg_rportadd (struct Scsi_Host *shost , struct fc_rport *rport ); ARGUMENTS shost shost that rport is attached to rport rport that the bsg hooks are being attached to SEE ALSO Kernel file ./drivers/sc...
fc_copy_buffer_to_sglist(9)
NAME fc_copy_buffer_to_sglist - This routine copies the data of a buffer into a scatter-gather list (SG list). SYNOPSIS u32 fc_copy_buffer_to_sglist (void *buf , size_t len , struct scatterlist *sg , u32 *nents , size_t *offset , u32 *crc ); ARGUMENTS buf pointer to the data buffer. len the by...
fc_ct_fill(9)
NAME fc_ct_fill - Fill in a common transport service request frame SYNOPSIS int fc_ct_fill (struct fc_lport *lport , u32 fc_id , struct fc_frame *fp , unsigned int op , enum fc_rctl *r_ctl , enum fc_fh_type *fh_type , u32 *did ); ARGUMENTS lport local port. fc_id FC_ID of non-destination rport for...
fc_ct_hdr_fill(9)
NAME fc_ct_hdr_fill - fills ct header and reset ct payload returns pointer to ct request. SYNOPSIS struct fc_ct_req * fc_ct_hdr_fill (const struct fc_frame *fp , unsigned int op , size_t req_size , enum fc_ct_fs_type fs_type , u8 subtype ); ARGUMENTS fp -- undescribed -- op -- undescribed --...
fc_ct_ms_fill(9)
NAME fc_ct_ms_fill - Fill in a mgmt service request frame SYNOPSIS int fc_ct_ms_fill (struct fc_lport *lport , u32 fc_id , struct fc_frame *fp , unsigned int op , enum fc_rctl *r_ctl , enum fc_fh_type *fh_type ); ARGUMENTS lport local port. fc_id FC_ID of non-destination rport for GPN_ID and simil...
fc_ct_ns_fill(9)
NAME fc_ct_ns_fill - Fill in a name service request frame SYNOPSIS int fc_ct_ns_fill (struct fc_lport *lport , u32 fc_id , struct fc_frame *fp , unsigned int op , enum fc_rctl *r_ctl , enum fc_fh_type *fh_type ); ARGUMENTS lport local port. fc_id FC_ID of non-destination rport for GPN_ID and simil...
fc_destroy_exch_mgr(9)
NAME fc_destroy_exch_mgr - Destroy an exchange manager SYNOPSIS void fc_destroy_exch_mgr (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/scsi/libfc/fc_exch.c struct fc_exch_pool(9), struct fc_exch_mgr(9), struct fc_exch_mgr_anchor(9), fc_exch_name_lookup(9), fc_exch_rctl_name(9), fc_e...
fc_destroy_rport(9)
NAME fc_destroy_rport - Destroy the rport_event_queue SYNOPSIS void fc_destroy_rport (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/scsi/libfc/fc_rport.c fc_rport_lookup(9), fc_rport_create(9), fc_rport_destroy(9), fc_rport_state(9), fc_set_rport_loss_tmo(9), fc_plogi_get_maxframe(9), ...
fc_disc_config(9)
NAME fc_disc_config - Configure the discovery layer for a local port SYNOPSIS void fc_disc_config (struct fc_lport *lport , void *priv ); ARGUMENTS lport The local port that needs the discovery layer to be configured priv Private data structre for users of the discovery layer SEE ALSO Kernel f...
fc_disc_done(9)
NAME fc_disc_done - Discovery has been completed SYNOPSIS void fc_disc_done (struct fc_disc *disc , enum fc_disc_event event ); ARGUMENTS disc The discovery context event The discovery completion status SEE ALSO Kernel file ./drivers/scsi/libfc/fc_disc.c fc_disc_stop_rports(9), fc_disc_recv_...
fc_disc_error(9)
NAME fc_disc_error - Handle error on dNS request SYNOPSIS void fc_disc_error (struct fc_disc *disc , struct fc_frame *fp ); ARGUMENTS disc The discovery context fp The error code encoded as a frame pointer SEE ALSO Kernel file ./drivers/scsi/libfc/fc_disc.c fc_disc_stop_rports(9), fc_disc...
fc_disc_gpn_ft_parse(9)
NAME fc_disc_gpn_ft_parse - Parse the body of the dNS GPN_FT response. SYNOPSIS int fc_disc_gpn_ft_parse (struct fc_disc *disc , void *buf , size_t len ); ARGUMENTS disc The discovery context buf The GPN_FT response buffer len The size of response buffer DESCRIPTION Goes throug...
fc_disc_gpn_ft_req(9)
NAME fc_disc_gpn_ft_req - Send Get Port Names by FC-4 type (GPN_FT) request SYNOPSIS void fc_disc_gpn_ft_req (struct fc_disc *disc ); ARGUMENTS disc The discovery context SEE ALSO Kernel file ./drivers/scsi/libfc/fc_disc.c fc_disc_stop_rports(9), fc_disc_recv_rscn_req(9), fc_disc_recv_req(9), fc_disc_re...
fc_disc_gpn_ft_resp(9)
NAME fc_disc_gpn_ft_resp - Handle a response frame from Get Port Names (GPN_FT) SYNOPSIS void fc_disc_gpn_ft_resp (struct fc_seq *sp , struct fc_frame *fp , void *disc_arg ); ARGUMENTS sp The sequence that the GPN_FT response was received on fp The GPN_FT response frame disc_arg T...
fc_disc_gpn_id_req(9)
NAME fc_disc_gpn_id_req - Send Get Port Names by ID (GPN_ID) request SYNOPSIS int fc_disc_gpn_id_req (struct fc_lport *lport , struct fc_rport_priv *rdata ); ARGUMENTS lport The local port to initiate discovery on rdata remote port private data DESCRIPTION On failure, an error code is returned. ...
fc_disc_gpn_id_resp(9)
NAME fc_disc_gpn_id_resp - Handle a response frame from Get Port Names (GPN_ID) SYNOPSIS void fc_disc_gpn_id_resp (struct fc_seq *sp , struct fc_frame *fp , void *rdata_arg ); ARGUMENTS sp The sequence the GPN_ID is on fp The response frame rdata_arg The remote port that sent the G...
fc_disc_init(9)
NAME fc_disc_init - Initialize the discovery layer for a local port SYNOPSIS void fc_disc_init (struct fc_lport *lport ); ARGUMENTS lport The local port that needs the discovery layer to be initialized SEE ALSO Kernel file ./drivers/scsi/libfc/fc_disc.c fc_disc_stop_rports(9), fc_disc_recv_rscn_req(9), ...
fc_disc_recv_req(9)
NAME fc_disc_recv_req - Handle incoming requests SYNOPSIS void fc_disc_recv_req (struct fc_lport *lport , struct fc_frame *fp ); ARGUMENTS lport The local port receiving the request fp The request frame DESCRIPTION Locking Note: This function is called from the EM and will lock the disc_mutex ...
fc_disc_recv_rscn_req(9)
NAME fc_disc_recv_rscn_req - Handle Registered State Change Notification (RSCN) SYNOPSIS void fc_disc_recv_rscn_req (struct fc_disc *disc , struct fc_frame *fp ); ARGUMENTS disc The discovery object to which the RSCN applies fp The RSCN frame SEE ALSO Kernel file ./drivers/scsi/libfc/fc_dis...
fc_disc_restart(9)
NAME fc_disc_restart - Restart discovery SYNOPSIS void fc_disc_restart (struct fc_disc *disc ); ARGUMENTS disc The discovery object to be restarted SEE ALSO Kernel file ./drivers/scsi/libfc/fc_disc.c fc_disc_stop_rports(9), fc_disc_recv_rscn_req(9), fc_disc_recv_req(9), fc_disc_start(9), fc_disc_done(9...
fc_disc_single(9)
NAME fc_disc_single - Discover the directory information for a single target SYNOPSIS int fc_disc_single (struct fc_lport *lport , struct fc_disc_port *dp ); ARGUMENTS lport The local port the remote port is associated with dp The port to rediscover SEE ALSO Kernel file ./drivers/scsi/libf...
fc_disc_start(9)
NAME fc_disc_start - Start discovery on a local port SYNOPSIS void fc_disc_start (void (*disc_callback)(struct fc_lport *, enum fc_disc_event) , struct fc_lport *lport ); ARGUMENTS disc_callback Callback function to be called when discovery is complete lport The local port to have discovery started on ...
fc_disc_stop(9)
NAME fc_disc_stop - Stop discovery for a given lport SYNOPSIS void fc_disc_stop (struct fc_lport *lport ); ARGUMENTS lport The local port that discovery should stop on SEE ALSO Kernel file ./drivers/scsi/libfc/fc_disc.c fc_disc_stop_rports(9), fc_disc_recv_rscn_req(9), fc_disc_recv_req(9), fc_disc_rest...
fc_disc_stop_final(9)
NAME fc_disc_stop_final - Stop discovery for a given lport SYNOPSIS void fc_disc_stop_final (struct fc_lport *lport ); ARGUMENTS lport The lport that discovery should stop on DESCRIPTION This function will block until discovery has been completely stopped and all rports have been deleted. SEE ALSO Kernel fi...
fc_disc_stop_rports(9)
NAME fc_disc_stop_rports - Delete all the remote ports associated with the lport SYNOPSIS void fc_disc_stop_rports (struct fc_disc *disc ); ARGUMENTS disc The discovery job to stop remote ports on SEE ALSO Kernel file ./drivers/scsi/libfc/fc_disc.c fc_disc_recv_rscn_req(9), fc_disc_recv_req(9), fc_disc_...
fc_disc_timeout(9)
NAME fc_disc_timeout - Handler for discovery timeouts SYNOPSIS void fc_disc_timeout (struct work_struct *work ); ARGUMENTS work Structure holding discovery context that needs to retry discovery SEE ALSO Kernel file ./drivers/scsi/libfc/fc_disc.c fc_disc_stop_rports(9), fc_disc_recv_rscn_req(9), fc_disc...
fc_eh_abort(9)
NAME fc_eh_abort - Abort a command SYNOPSIS int fc_eh_abort (struct scsi_cmnd *sc_cmd ); ARGUMENTS sc_cmd The SCSI command to abort DESCRIPTION From SCSI host template. Send an ABTS to the target device and wait for the response. SEE ALSO Kernel file ./drivers/scsi/libfc/fc_fcp.c struct fc_fcp_internal(9),...
fc_eh_device_reset(9)
NAME fc_eh_device_reset - Reset a single LUN SYNOPSIS int fc_eh_device_reset (struct scsi_cmnd *sc_cmd ); ARGUMENTS sc_cmd The SCSI command which identifies the device whose LUN is to be reset DESCRIPTION Set from SCSI host template. SEE ALSO Kernel file ./drivers/scsi/libfc/fc_fcp.c struct fc_fcp_internal(...
fc_eh_host_reset(9)
NAME fc_eh_host_reset - Reset a Scsi_Host. SYNOPSIS int fc_eh_host_reset (struct scsi_cmnd *sc_cmd ); ARGUMENTS sc_cmd The SCSI command that identifies the SCSI host to be reset SEE ALSO Kernel file ./drivers/scsi/libfc/fc_fcp.c struct fc_fcp_internal(9), fc_fcp_pkt_alloc(9), fc_fcp_pkt_release(9), fc_fcp_pk...
fc_eh_timed_out(9)
NAME fc_eh_timed_out - FC Transport I/O timeout intercept handler SYNOPSIS enum scsi_timeout_action fc_eh_timed_out (struct scsi_cmnd *scmd ); ARGUMENTS scmd The SCSI command which timed out DESCRIPTION This routine protects against error handlers getting invoked while a rport is in a blocked state, typical...
fc_els_fill(9)
NAME fc_els_fill - Fill in an ELS request frame SYNOPSIS int fc_els_fill (struct fc_lport *lport , u32 did , struct fc_frame *fp , unsigned int op , enum fc_rctl *r_ctl , enum fc_fh_type *fh_type ); ARGUMENTS lport -- undescribed -- did -- undescribed -- fp -- undescribed -- ...
fc_els_resp_type(9)
NAME fc_els_resp_type - Return a string describing the ELS response SYNOPSIS const char * fc_els_resp_type (struct fc_frame *fp ); ARGUMENTS fp The frame pointer or possible error code SEE ALSO Kernel file ./drivers/scsi/libfc/fc_elsct.c fc_elsct_send(9), fc_elsct_init(9) April 2026 ...
fc_elsct_init(9)
NAME fc_elsct_init - Initialize the ELS/CT layer SYNOPSIS int fc_elsct_init (struct fc_lport *lport ); ARGUMENTS lport The local port to initialize the ELS/CT layer for SEE ALSO Kernel file ./drivers/scsi/libfc/fc_elsct.c fc_elsct_send(9), fc_els_resp_type(9) April 2026 ...
fc_elsct_send(9)
NAME fc_elsct_send - Send an ELS or CT frame SYNOPSIS struct fc_seq * fc_elsct_send (struct fc_lport *lport , u32 did , struct fc_frame *fp , unsigned int op , void (*resp)(struct fc_seq *, struct fc_frame *, void *) , void *arg , u32 timer_msec ); ARGUMENTS lport The local port to send the frame on did...
fc_exch_abort_locked(9)
NAME fc_exch_abort_locked - Abort an exchange SYNOPSIS int fc_exch_abort_locked (struct fc_exch *ep , unsigned int timer_msec ); ARGUMENTS ep The exchange to be aborted timer_msec The period of time to wait before aborting DESCRIPTION Abort an exchange and sequence. Generally called because of a...
fc_exch_abts_resp(9)
NAME fc_exch_abts_resp - Handler for a response to an ABT SYNOPSIS void fc_exch_abts_resp (struct fc_exch *ep , struct fc_frame *fp ); ARGUMENTS ep The exchange that the frame is on fp The response frame DESCRIPTION This response would be to an ABTS cancelling an exchange or sequence. The ...
fc_exch_alloc(9)
NAME fc_exch_alloc - Allocate an exchange from an EM on a local port's list of EMs. SYNOPSIS struct fc_exch * fc_exch_alloc (struct fc_lport *lport , struct fc_frame *fp ); ARGUMENTS lport The local port that will own the exchange fp The FC frame that the exchange will be for DESCRIPTION This ...
fc_exch_delete(9)
NAME fc_exch_delete - Delete an exchange SYNOPSIS void fc_exch_delete (struct fc_exch *ep ); ARGUMENTS ep The exchange to be deleted SEE ALSO Kernel file ./drivers/scsi/libfc/fc_exch.c struct fc_exch_pool(9), struct fc_exch_mgr(9), struct fc_exch_mgr_anchor(9), fc_exch_name_lookup(9), fc_exch_rctl_name...
fc_exch_done(9)
NAME fc_exch_done - Indicate that an exchange/sequence tuple is complete and the memory allocated for the related objects may be freed. SYNOPSIS void fc_exch_done (struct fc_seq *sp ); ARGUMENTS sp The sequence that has completed NOTE May sleep if invoked from outside a response handler. SEE ALSO Kernel f...
fc_exch_done_locked(9)
NAME fc_exch_done_locked - Complete an exchange with the exchange lock held SYNOPSIS int fc_exch_done_locked (struct fc_exch *ep ); ARGUMENTS ep The exchange that is complete NOTE May sleep if invoked from outside a response handler. SEE ALSO Kernel file ./drivers/scsi/libfc/fc_exch.c struct fc_exch_po...
fc_exch_els_rec(9)
NAME fc_exch_els_rec - Handler for ELS REC (Read Exchange Concise) requests SYNOPSIS void fc_exch_els_rec (struct fc_frame *rfp ); ARGUMENTS rfp The REC frame, not freed here. DESCRIPTION Note that the requesting port may be different than the S_ID in the request. SEE ALSO Kernel file ./drivers/scsi/libfc...
fc_exch_els_rrq(9)
NAME fc_exch_els_rrq - Handler for ELS RRQ (Reset Recovery Qualifier) requests SYNOPSIS void fc_exch_els_rrq (struct fc_frame *fp ); ARGUMENTS fp The RRQ frame, not freed here. SEE ALSO Kernel file ./drivers/scsi/libfc/fc_exch.c struct fc_exch_pool(9), struct fc_exch_mgr(9), struct fc_exch_mgr_anchor(9...
fc_exch_em_alloc(9)
NAME fc_exch_em_alloc - Allocate an exchange from a specified EM. SYNOPSIS struct fc_exch * fc_exch_em_alloc (struct fc_lport *lport , struct fc_exch_mgr *mp ); ARGUMENTS lport The local port that the exchange is for mp The exchange manager that will allocate the exchange DESCRIPTION Returns p...
fc_exch_find(9)
NAME fc_exch_find - Lookup and hold an exchange SYNOPSIS struct fc_exch * fc_exch_find (struct fc_exch_mgr *mp , u16 xid ); ARGUMENTS mp The exchange manager to lookup the exchange from xid The XID of the exchange to look up SEE ALSO Kernel file ./drivers/scsi/libfc/fc_exch.c struct fc_e...
fc_exch_hold(9)
NAME fc_exch_hold - Increment an exchange's reference count SYNOPSIS void fc_exch_hold (struct fc_exch *ep ); ARGUMENTS ep Echange to be held SEE ALSO Kernel file ./drivers/scsi/libfc/fc_exch.c struct fc_exch_pool(9), struct fc_exch_mgr(9), struct fc_exch_mgr_anchor(9), fc_exch_name_lookup(9), f...
fc_exch_init(9)
NAME fc_exch_init - Initialize the exchange layer for a local port SYNOPSIS int fc_exch_init (struct fc_lport *lport ); ARGUMENTS lport The local port to initialize the exchange layer for SEE ALSO Kernel file ./drivers/scsi/libfc/fc_exch.c struct fc_exch_pool(9), struct fc_exch_mgr(9), struct fc_exch_m...
fc_exch_lookup(9)
NAME fc_exch_lookup - find an exchange SYNOPSIS struct fc_exch * fc_exch_lookup (struct fc_lport *lport , u32 xid ); ARGUMENTS lport The local port xid The exchange ID DESCRIPTION Returns exchange pointer with hold for caller, or NULL if not found. SEE ALSO Kernel file ./drivers/scsi/libfc/f...
fc_exch_mgr_add(9)
NAME fc_exch_mgr_add - Add an exchange manager to a local port's list of EMs SYNOPSIS struct fc_exch_mgr_anchor * fc_exch_mgr_add (struct fc_lport *lport , struct fc_exch_mgr *mp , bool (*match)(struct fc_frame *) ); ARGUMENTS lport The local port to add the exchange manager to mp The exchange ...
fc_exch_mgr_alloc(9)
NAME fc_exch_mgr_alloc - Allocate an exchange manager SYNOPSIS struct fc_exch_mgr * fc_exch_mgr_alloc (struct fc_lport *lport , enum fc_class class , u16 min_xid , u16 max_xid , bool (*match)(struct fc_frame *) ); ARGUMENTS lport The local port that the new EM will be associated with class The def...
fc_exch_mgr_del(9)
NAME fc_exch_mgr_del - Delete an EM from a local port's list SYNOPSIS void fc_exch_mgr_del (struct fc_exch_mgr_anchor *ema ); ARGUMENTS ema The exchange manager anchor identifying the EM to be deleted SEE ALSO Kernel file ./drivers/scsi/libfc/fc_exch.c struct fc_exch_pool(9), struct fc_exch_mgr(9), stru...
fc_exch_mgr_destroy(9)
NAME fc_exch_mgr_destroy - Destroy an exchange manager SYNOPSIS void fc_exch_mgr_destroy (struct kref *kref ); ARGUMENTS kref The reference to the EM to be destroyed SEE ALSO Kernel file ./drivers/scsi/libfc/fc_exch.c struct fc_exch_pool(9), struct fc_exch_mgr(9), struct fc_exch_mgr_anchor(9), fc_exch_na...
fc_exch_mgr_free(9)
NAME fc_exch_mgr_free - Free all exchange managers on a local port SYNOPSIS void fc_exch_mgr_free (struct fc_lport *lport ); ARGUMENTS lport The local port whose EMs are to be freed SEE ALSO Kernel file ./drivers/scsi/libfc/fc_exch.c struct fc_exch_pool(9), struct fc_exch_mgr(9), struct fc_exch_mgr_anchor...
fc_exch_mgr_list_clone(9)
NAME fc_exch_mgr_list_clone - Share all exchange manager objects SYNOPSIS int fc_exch_mgr_list_clone (struct fc_lport *src , struct fc_lport *dst ); ARGUMENTS src Source lport to clone exchange managers from dst New lport that takes references to all the exchange managers SEE ALSO Kernel fil...
fc_exch_mgr_reset(9)
NAME fc_exch_mgr_reset - Reset all EMs of a local port SYNOPSIS void fc_exch_mgr_reset (struct fc_lport *lport , u32 sid , u32 did ); ARGUMENTS lport The local port whose EMs are to be reset sid The source ID did The destination ID DESCRIPTION Reset all EMs associated with a giv...
fc_exch_name_lookup(9)
NAME fc_exch_name_lookup - Lookup name by opcode SYNOPSIS const char * fc_exch_name_lookup (unsigned int op , char **table , unsigned int max_index ); ARGUMENTS op Opcode to be looked up table Opcode/name table max_index Index not to be exceeded DESCRIPTION This routine is used to de...
fc_exch_pool_reset(9)
NAME fc_exch_pool_reset - Reset a per cpu exchange pool SYNOPSIS void fc_exch_pool_reset (struct fc_lport *lport , struct fc_exch_pool *pool , u32 sid , u32 did ); ARGUMENTS lport The local port that the exchange pool is on pool The exchange pool to be reset sid The source ID ...
fc_exch_ptr_get(9)
NAME fc_exch_ptr_get - Return an exchange from an exchange pool SYNOPSIS struct fc_exch * fc_exch_ptr_get (struct fc_exch_pool *pool , u16 index ); ARGUMENTS pool Exchange Pool to get an exchange from index Index of the exchange within the pool DESCRIPTION Use the index to get an exchange from w...
fc_exch_ptr_set(9)
NAME fc_exch_ptr_set - Assign an exchange to a slot in an exchange pool SYNOPSIS void fc_exch_ptr_set (struct fc_exch_pool *pool , u16 index , struct fc_exch *ep ); ARGUMENTS pool The pool to assign the exchange to index The index in the pool where the exchange will be assigned ep ...
fc_exch_rctl_name(9)
NAME fc_exch_rctl_name - Wrapper routine for fc_exch_name_lookup() SYNOPSIS const char * fc_exch_rctl_name (unsigned int op ); ARGUMENTS op The opcode to be looked up SEE ALSO Kernel file ./drivers/scsi/libfc/fc_exch.c struct fc_exch_pool(9), struct fc_exch_mgr(9), struct fc_exch_mgr_anchor(9), fc_exch_name...
fc_exch_recv(9)
NAME fc_exch_recv - Handler for received frames SYNOPSIS void fc_exch_recv (struct fc_lport *lport , struct fc_frame *fp ); ARGUMENTS lport The local port the frame was received on fp The received frame SEE ALSO Kernel file ./drivers/scsi/libfc/fc_exch.c struct fc_exch_pool(9), struct fc_...
fc_exch_recv_abts(9)
NAME fc_exch_recv_abts - Handle an incoming ABTS SYNOPSIS void fc_exch_recv_abts (struct fc_exch *ep , struct fc_frame *rx_fp ); ARGUMENTS ep The exchange the abort was on rx_fp The ABTS frame DESCRIPTION This would be for target mode usually, but could be due to lost FCP transfer ready, confi...
fc_exch_recv_bls(9)
NAME fc_exch_recv_bls - Handler for a BLS sequence SYNOPSIS void fc_exch_recv_bls (struct fc_exch_mgr *mp , struct fc_frame *fp ); ARGUMENTS mp The EM that the exchange is on fp The request frame DESCRIPTION The BLS frame is always a sequence initiated by the remote side. We may be either ...
fc_exch_recv_req(9)
NAME fc_exch_recv_req - Handler for an incoming request SYNOPSIS void fc_exch_recv_req (struct fc_lport *lport , struct fc_exch_mgr *mp , struct fc_frame *fp ); ARGUMENTS lport The local port that received the request mp The EM that the exchange is on fp The request frame DESC...
fc_exch_recv_resp(9)
NAME fc_exch_recv_resp - Handler for a sequence where other end is responding to our sequence SYNOPSIS void fc_exch_recv_resp (struct fc_exch_mgr *mp , struct fc_frame *fp ); ARGUMENTS mp The EM that the exchange is on fp The response frame SEE ALSO Kernel file ./drivers/scsi/libfc/fc_exc...
fc_exch_recv_seq_resp(9)
NAME fc_exch_recv_seq_resp - Handler for an incoming response where the other end is the originator of the sequence that is a response to our initial exchange SYNOPSIS void fc_exch_recv_seq_resp (struct fc_exch_mgr *mp , struct fc_frame *fp ); ARGUMENTS mp The EM that the exchange is on fp T...
fc_exch_release(9)
NAME fc_exch_release - Decrement an exchange's reference count SYNOPSIS void fc_exch_release (struct fc_exch *ep ); ARGUMENTS ep Exchange to be released DESCRIPTION If the reference count reaches zero and the exchange is complete, it is freed. SEE ALSO Kernel file ./drivers/scsi/libfc/fc_exch.c struc...
fc_exch_reset(9)
NAME fc_exch_reset - Reset an exchange SYNOPSIS void fc_exch_reset (struct fc_exch *ep ); ARGUMENTS ep The exchange to be reset NOTE May sleep if invoked from outside a response handler. SEE ALSO Kernel file ./drivers/scsi/libfc/fc_exch.c struct fc_exch_pool(9), struct fc_exch_mgr(9), struct fc_exch_m...
fc_exch_resp(9)
NAME fc_exch_resp - Allocate a new exchange for a response frame SYNOPSIS struct fc_exch * fc_exch_resp (struct fc_lport *lport , struct fc_exch_mgr *mp , struct fc_frame *fp ); ARGUMENTS lport The local port that the exchange was for mp The exchange manager to allocate the exchange from ...
fc_exch_rrq(9)
NAME fc_exch_rrq - Send an ELS RRQ (Reinstate Recovery Qualifier) command SYNOPSIS void fc_exch_rrq (struct fc_exch *ep ); ARGUMENTS ep The exchange to send the RRQ on DESCRIPTION This tells the remote port to stop blocking the use of the exchange and the seq_cnt range. SEE ALSO Kernel file ./drivers/scs...
fc_exch_rrq_resp(9)
NAME fc_exch_rrq_resp - Handler for RRQ responses SYNOPSIS void fc_exch_rrq_resp (struct fc_seq *sp , struct fc_frame *fp , void *arg ); ARGUMENTS sp The sequence that the RRQ is on fp The RRQ frame arg The exchange that the RRQ is on DESCRIPTION TODO: fix error handler. SE...
fc_exch_send_ba_rjt(9)
NAME fc_exch_send_ba_rjt - Send BLS Reject SYNOPSIS void fc_exch_send_ba_rjt (struct fc_frame *rx_fp , enum fc_ba_rjt_reason reason , enum fc_ba_rjt_explan explan ); ARGUMENTS rx_fp The frame being rejected reason The reason the frame is being rejected explan The explanation for the re...
fc_exch_seq_send(9)
NAME fc_exch_seq_send - Send a frame using a new exchange and sequence SYNOPSIS struct fc_seq * fc_exch_seq_send (struct fc_lport *lport , struct fc_frame *fp , void (*resp)(struct fc_seq *, struct fc_frame *fp, void *arg) , void (*destructor)(struct fc_seq *, void *) , void *arg , u32 timer_msec ); ARGUMENTS lport ...
fc_exch_set_addr(9)
NAME fc_exch_set_addr - Set the source and destination IDs for an exchange SYNOPSIS void fc_exch_set_addr (struct fc_exch *ep , u32 orig_id , u32 resp_id ); ARGUMENTS ep The exchange to set the addresses for orig_id The originator's ID resp_id The responder's ID DESCRIPTION Note this...
fc_exch_setup_hdr(9)
NAME fc_exch_setup_hdr - Initialize a FC header by initializing some fields and determine SOF and EOF. SYNOPSIS void fc_exch_setup_hdr (struct fc_exch *ep , struct fc_frame *fp , u32 f_ctl ); ARGUMENTS ep The exchange to that will use the header fp The frame whose header is to be modified ...
fc_exch_timeout(9)
NAME fc_exch_timeout - Handle exchange timer expiration SYNOPSIS void fc_exch_timeout (struct work_struct *work ); ARGUMENTS work The work_struct identifying the exchange that timed out SEE ALSO Kernel file ./drivers/scsi/libfc/fc_exch.c struct fc_exch_pool(9), struct fc_exch_mgr(9), struct fc_exch_mgr_a...
fc_exch_timer_cancel(9)
NAME fc_exch_timer_cancel - cancel exch timer SYNOPSIS void fc_exch_timer_cancel (struct fc_exch *ep ); ARGUMENTS ep The exchange whose timer to be canceled SEE ALSO Kernel file ./drivers/scsi/libfc/fc_exch.c struct fc_exch_pool(9), struct fc_exch_mgr(9), struct fc_exch_mgr_anchor(9), fc_exch_name_look...
fc_exch_timer_set(9)
NAME fc_exch_timer_set - Lock the exchange and set the timer SYNOPSIS void fc_exch_timer_set (struct fc_exch *ep , unsigned int timer_msec ); ARGUMENTS ep The exchange whose timer will start timer_msec The timeout period SEE ALSO Kernel file ./drivers/scsi/libfc/fc_exch.c struct fc_exch_pool(9)...
fc_exch_timer_set_locked(9)
NAME fc_exch_timer_set_locked - Start a timer for an exchange w/ the the exchange lock held SYNOPSIS void fc_exch_timer_set_locked (struct fc_exch *ep , unsigned int timer_msec ); ARGUMENTS ep The exchange whose timer will start timer_msec The timeout period DESCRIPTION Used for upper level protoco...
fc_exch_update_stats(9)
NAME fc_exch_update_stats - update exches stats to lport SYNOPSIS void fc_exch_update_stats (struct fc_lport *lport ); ARGUMENTS lport The local port to update exchange manager stats SEE ALSO Kernel file ./drivers/scsi/libfc/fc_exch.c struct fc_exch_pool(9), struct fc_exch_mgr(9), struct fc_exch_mgr_ancho...
fc_fabric_login(9)
NAME fc_fabric_login - Start the lport state machine SYNOPSIS int fc_fabric_login (struct fc_lport *lport ); ARGUMENTS lport The local port that should log into the fabric DESCRIPTION Locking Note: This function should not be called with the lport lock held. SEE ALSO Kernel file ./drivers/scsi/libfc/fc_lp...
fc_fabric_logoff(9)
NAME fc_fabric_logoff - Logout of the fabric SYNOPSIS int fc_fabric_logoff (struct fc_lport *lport ); ARGUMENTS lport The local port to logoff the fabric DESCRIPTION Return value: 0 for success, -1 for failure SEE ALSO Kernel file ./drivers/scsi/libfc/fc_lport.c struct fc_bsg_info(9), fc_frame_drop(...
fc_fc4_add_lport(9)
NAME fc_fc4_add_lport - add new local port to list and run notifiers. SYNOPSIS void fc_fc4_add_lport (struct fc_lport *lport ); ARGUMENTS lport The new local port. SEE ALSO Kernel file ./drivers/scsi/libfc/fc_libfc.c libfc_init(9), libfc_exit(9), fc_copy_buffer_to_sglist(9), fc_fill_hdr(9), fc_fill_repl...
fc_fc4_conf_lport_params(9)
NAME fc_fc4_conf_lport_params - Modify "service_params" of specified lport if there is service provider (target provider) registered with libfc for specified "fc_ft_type" SYNOPSIS void fc_fc4_conf_lport_params (struct fc_lport *lport , enum fc_fh_type type ); ARGUMENTS lport Local port which service_params need...
fc_fc4_del_lport(9)
NAME fc_fc4_del_lport - remove local port from list and run notifiers. SYNOPSIS void fc_fc4_del_lport (struct fc_lport *lport ); ARGUMENTS lport The new local port. SEE ALSO Kernel file ./drivers/scsi/libfc/fc_libfc.c libfc_init(9), libfc_exit(9), fc_copy_buffer_to_sglist(9), fc_fill_hdr(9), fc_fill_rep...
fc_fc4_deregister_provider(9)
NAME fc_fc4_deregister_provider - deregister FC-4 upper-level provider. SYNOPSIS void fc_fc4_deregister_provider (enum fc_fh_type type , struct fc4_prov *prov ); ARGUMENTS type FC-4 type, such as FC_TYPE_FCP prov structure describing provider including ops vector. SEE ALSO Kernel file ./drive...
fc_fc4_register_provider(9)
NAME fc_fc4_register_provider - register FC-4 upper-level provider. SYNOPSIS int fc_fc4_register_provider (enum fc_fh_type type , struct fc4_prov *prov ); ARGUMENTS type FC-4 type, such as FC_TYPE_FCP prov structure describing provider including ops vector. DESCRIPTION Returns 0 on success, neg...
fc_fcp_abort_io(9)
NAME fc_fcp_abort_io - Abort all FCP-SCSI exchanges on a local port SYNOPSIS void fc_fcp_abort_io (struct fc_lport *lport ); ARGUMENTS lport The local port whose exchanges are to be aborted SEE ALSO Kernel file ./drivers/scsi/libfc/fc_fcp.c struct fc_fcp_internal(9), fc_fcp_pkt_alloc(9), fc_fcp_pkt_release(...
fc_fcp_abts_resp(9)
NAME fc_fcp_abts_resp - Receive an ABTS response SYNOPSIS void fc_fcp_abts_resp (struct fc_fcp_pkt *fsp , struct fc_frame *fp ); ARGUMENTS fsp The FCP packet that is being aborted fp The response frame SEE ALSO Kernel file ./drivers/scsi/libfc/fc_fcp.c struct fc_fcp_internal(9), fc...
fc_fcp_can_queue_ramp_down(9)
NAME fc_fcp_can_queue_ramp_down - reduces can_queue SYNOPSIS bool fc_fcp_can_queue_ramp_down (struct fc_lport *lport ); ARGUMENTS lport lport to reduce can_queue DESCRIPTION If we are getting memory allocation failures, then we may be trying to execute too many commands. We let the running commands complete o...
fc_fcp_can_queue_ramp_up(9)
NAME fc_fcp_can_queue_ramp_up - increases can_queue SYNOPSIS void fc_fcp_can_queue_ramp_up (struct fc_lport *lport ); ARGUMENTS lport lport to ramp up can_queue SEE ALSO Kernel file ./drivers/scsi/libfc/fc_fcp.c struct fc_fcp_internal(9), fc_fcp_pkt_alloc(9), fc_fcp_pkt_release(9), fc_fcp_pkt_hold(9), fc_fc...
fc_fcp_cleanup(9)
NAME fc_fcp_cleanup - Cleanup all FCP exchanges on a local port SYNOPSIS void fc_fcp_cleanup (struct fc_lport *lport ); ARGUMENTS lport The local port to be cleaned up SEE ALSO Kernel file ./drivers/scsi/libfc/fc_fcp.c struct fc_fcp_internal(9), fc_fcp_pkt_alloc(9), fc_fcp_pkt_release(9), fc_fcp_pkt_hold(9)...
fc_fcp_cleanup_cmd(9)
NAME fc_fcp_cleanup_cmd - Cancel the active exchange on a fcp_pkt SYNOPSIS void fc_fcp_cleanup_cmd (struct fc_fcp_pkt *fsp , int error ); ARGUMENTS fsp The FCP packet whose exchanges should be canceled error The reason for the cancellation SEE ALSO Kernel file ./drivers/scsi/libfc/fc_fcp.c s...
fc_fcp_cleanup_each_cmd(9)
NAME fc_fcp_cleanup_each_cmd - Cancel all exchanges on a local port SYNOPSIS void fc_fcp_cleanup_each_cmd (struct fc_lport *lport , unsigned int id , unsigned int lun , int error ); ARGUMENTS lport The local port whose exchanges should be canceled id The target's ID lun The LUN ...