fc_bsg_host_dispatch(9)
π« NAME π«
fc_bsg_host_dispatch β bestie, this is the function that takes your fc host bsg requests and hands them off to the LLDD π
β¨ SYNOPSIS β¨
int fc_bsg_host_dispatch (struct Scsi_Host *shost , struct bsg_job *job
);
okay so real talk, it returns an int, and it takes two things. that's it. that's the whole vibe π
π¦ ARGUMENTS π¦
shostβ the scsi host rport attached to π«Ά like, this is the host it's riding for, yk?jobβ the bsg job to be processed. this is the actual work item getting yeeted through the pipeline β
π SEE ALSO π
no cap, this function does not exist in a vacuum β here's the whole friend group, all from the 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_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_rport_dispatch(9)fc_bsg_hostadd(9)fc_bsg_rportadd(9)fc_bsg_remove(9)
like... thirty-two of them. it's giving "everyone showed up to the function's birthday party" ππ₯ go read them, iykyk.
π seriously though, if you're touchingfc_bsg_host_dispatchin./drivers/scsi, please actually read the ones above.fc_bsg_rport_dispatch(9)especially β it's the sibling, and the way that they mirror each other? obsessed. π§
okay bestie that's the page!! π this was the Kernel API Manual entry for fc_bsg_host_dispatch, and the whole thing lives in ./drivers/scsi β stamped October 2026, version vibes and all. slay, go dispatch some requests, periodt πππ¦
π¦ 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