fc_bsg_remove(9)
π fc_bsg_remove β the Kernel API Manual, bestie edition π
Okay so welcome to fc_bsg_remove(9), from the Kernel API Manual β¨ β this is the little cleanup function that deletes the bsg hooks on fchosts/rports, and honestly it's giving "last one out turns off the lights" energy π.
πΈ NAME πΈ
fc_bsg_remove β deletes the bsg hooks on fchosts/rports. that's it, that's the whole job π
β¨ SYNOPSIS β¨
void fc_bsg_remove (struct request_queue *q );
no return value, no drama, just vibes and a void π¦
π«Ά ARGUMENTS π«Ά
qβ therequest_queuethat is to be torn down. like, this is the queue you're saying bye to π the function knows what to do with it.
π NOTES π
before unregistering the queue, empty any requests that are blocked π¨
fr fr, that's not optional β do the emptying first, then unregister. skip that step and you're asking for trouble, no cap π
π SEE ALSO π
the kernel file you wanna peek at: ./drivers/scsi/scsi_transport_fc.c π
and the whole friend group of related calls (they all live in section 9, iykyk):
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_remove_host(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)
and that's the page!! π§ source location is ./drivers/scsi, and it's dated October 2026 β so yeah, mark your calendar bestie π stay slay, stay blocked-request-free, mwah π
π¦ 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