fc_host_post_vendor_event(9)
π fc_host_post_vendor_event β from the Kernel API Manual, bestie β¨
okay so picture this: it's giving kernel API, it's giving Fibre Channel, and the manual it lives in is literally called the Kernel API Manual. this is the function you call when you gotta post a vendor unique event on an fc_host. iconic behavior only π¦
πΈ NAME πΈ
fc_host_post_vendor_event β the one you call to post a vendor unique event on an fc_host. that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
void fc_host_post_vendor_event (struct Scsi_Host *shost , u32
event_number , u32 data_len , char * data_buf , u64 vendor_id );
like, it returns void, so don't go looking for a return value, there isn't one, periodt π
π«Ά ARGUMENTS π«Ά
shostβ the host the event occurred on. this is the main character right here πevent_numberβ the fc event number, which you get fromget_fc_event_number. don't just make one up, go get it πdata_lenβ the amount, in bytes, of vendor unique data. yes, bytes, keep up πdata_bufβ pointer to the vendor unique data. it's achar *, she's pointing at your stuff π§vendor_idβ the Vendor id. that's it, that's the description, no notes π
π₯ NOTES π₯
this routine assumes no locks are held on entry. so like, if you're holding a lock when you call this, that's not the move, bestie β check yourself before you wreck yourself π
β SEE ALSO β
the kernel file ./drivers/scsi/scsi_transport_fc.c is where all the lore lives, and it's linked to all of these besties β every single one, no skips, we don't do that here π
fc_get_event_number(9)fc_host_post_fc_event(9)fc_host_post_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)
reading list for the girlies: all 33 of these, in order, with snacks. iykyk π
and that's a wrap! this page lives in ./drivers/scsi, it's dated October 2026, and it's filed under fc_host_post_vendor_event(9). slay, go post some vendor unique events responsibly πβ¨π
π¦ 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