fc_disc_start(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… fc_disc_start(9) β€” like, the discovery starter, bestie

okay so real talk, this is a page from the Kernel API Manual and it's lowkey iconic. It's fc_disc_start(9), and it does exactly one (1) thing but it does it slayfully: it kicks off discovery on a local port. That's the whole vibe. ✨


✨ NAME ✨

fc_disc_start β€” start discovery on a local port πŸ¦‹


🌸 SYNOPSIS 🌸

void fc_disc_start (void (*disc_callback)(struct fc_lport *, enum
fc_disc_event) , struct fc_lport *lport );

like yes it's a mouthful, breathe. it's a void function, it takes two things, we move. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • disc_callback β€” the callback function, aka the little guy who gets called when discovery is complete. you hand it over, it does its thing, everybody's happy. 🫢
  • lport β€” the local port that you want discovery started on. this is the main character of the operation ngl. πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file lives at ./drivers/scsi/libfc/fc_disc.c and honestly the whole friend group shows up here β€” go read these too, they're all part of the same era:

like that's the entire group chat, no cap. πŸ’€


fr fr though β€” if you're poking at this, read the neighbours first. fc_disc_config(9) and fc_disc_init(9) are the setup girlies, fc_disc_done(9) and fc_disc_error(9) are where the callback energy lands, and fc_disc_stop(9) / fc_disc_stop_final(9) are the cleanup crew. iykyk. 🌈

and that's the page!! brought to you by the fine people over at ./drivers/scsi/libfc, dated October 2026, in the Kernel API Manual. mwah, go forth and discover πŸ’–πŸŽ€β­

πŸ“¦ where this page comes from