fc_remove_host(9)
π¦ fc_remove_host(9) β Kernel API Manual π¦
okay bestie, this is the Kernel API Manual page for fc_remove_host(9), and it's literally about cleaning up your fc_transport situation before things get cursed π
π NAME π
fc_remove_host β called to terminate any fc_transport-related elements for a scsi host. That's the whole vibe: break down the fc_transport stuff tied to a SCSI host β¨
β¨ SYNOPSIS β¨
void fc_remove_host (struct Scsi_Host *shost );
π ARGUMENTS π
shostβ WhichScsi_Hostπ (yep, that's the argument, and it tells the routine which host we're talking about)
π₯ DESCRIPTION π₯
Okay so the expectation is that you call this routine immediately preceding the driver's call to scsi_remove_host β and yes, the original wording says βthe a driver's callβ, so we're preserving that little artifact, no cap π. Before, not after, not whenever.
β οΈ WARNING: A driver utilizing thefc_transport, which fails to call this routine prior toscsi_remove_host, will leave dangling objects in/sys/class/fc_remote_ports. Access to any of these objects can result in a system crash !!! This is not a drill, bestie π
π§ NOTES π§
Lock vibe check: this routine assumes no locks are held on entry. None. Zero. Do not walk in holding a lock like it's a Starbucks cup ππ ββοΈ
π SEE ALSO π
Kernel file ./drivers/scsi/scsi_transport_fc.c plus the whole function family reunion:
fc_get_event_number(9)fc_host_post_fc_event(9)fc_host_post_event(9)fc_host_post_vendor_event(9)fc_find_rport_by_wwpn(9)fc_host_fpin_rcv(9)fc_eh_timed_out(9)fc_queue_work(9)fc_flush_work(9)fc_queue_devloss_work(9)fc_flush_devloss(9)fc_starget_delete(9)fc_rport_final_delete(9)fc_remote_port_create(9)fc_remote_port_add(9)fc_remote_port_delete(9)fc_remote_port_rolechg(9)fc_timeout_deleted_rport(9)fc_timeout_fail_rport_io(9)fc_scsi_scan_rport(9)fc_block_rport(9)fc_block_scsi_eh(9)fc_vport_setup(9)fc_vport_create(9)fc_vport_terminate(9)fc_vport_sched_delete(9)fc_bsg_job_timeout(9)fc_bsg_host_dispatch(9)fc_bsg_rport_dispatch(9)fc_bsg_hostadd(9)fc_bsg_rportadd(9)fc_bsg_remove(9)
okay that's the page, mwah π β source/version: ./drivers/scsi; date: October 2026; manual: fc_remove_host(9). byeee π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms