fc_host_post_event(9)
π
fc_host_post_event(9) β or, "how to fling an event onto an fc_host"
Okay bestie, gather round. This little cutie lives in the Kernel API Manual, and honestly? It's giving "one job, does it well." It's the function you call when you need to post an even on an fc_host β and yes, the page literally says "even," we're keeping it, it's iconic. β¨ No cap, no edits, we stan a typo with confidence.
β¨ SYNOPSIS β¨
void fc_host_post_event (struct Scsi_Host *shost , u32 event_number ,
enum fc_host_event_code event_code , u32 event_data );
Look at her. void return, four parameters, zero drama. π
πΈ ARGUMENTS πΈ
shostβ the host the event occurred on. Like, the actualScsi_Hostwhere the whole thing went down. π«Άevent_numberβ the fc event number, and you get it fromget_fc_event_number. Don't make one up yourself, bestie, that's not the vibe. πevent_codeβ thefc_hostevent that's being posted, typed asenum fc_host_event_code. iykyk. π¦event_dataβ a whole 32 bits of data for the event being posted. Thirty-two. Bits. Slay. π₯
π§ NOTES π§
Heads up, queen: this routine assumes no locks are held on entry. That's the whole note. Not me being dramatic β that's literally it. So do a vibe check on your locking before you call her, mkay? π
π SEE ALSO π
The kernel file in question is ./drivers/scsi/scsi_transport_fc.c, and here's the entire friend group β no one left out, fr fr:
fc_get_event_number(9)fc_host_post_fc_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)fc_bsg_remove(9)
Like, that's the whole group chat. π
And that's the page, bestie! π Sourced from ./drivers/scsi, dated October 2026, living its best life in the Kernel API Manual β main character energy from the ./drivers/scsi directory straight to your terminal. Go post some events. 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