fc_host_post_event(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 actual Scsi_Host where the whole thing went down. 🫢
  • event_number β€” the fc event number, and you get it from get_fc_event_number. Don't make one up yourself, bestie, that's not the vibe. πŸ’…
  • event_code β€” the fc_host event that's being posted, typed as enum 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:

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