fc_host_post_vendor_event(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 from get_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 a char *, 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 πŸ’–


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