zfcp_fc_scsi_to_fcp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… zfcp_fc_scsi_to_fcp(9) πŸ’…

okay so this is a page from the Kernel API Manual, and honestly? it's a little baby page but it's doing important work. bestie, if you're poking at zfcp on s390, this is the glue function you need to know about. let's get into it ✨


✨ NAME ✨

zfcp_fc_scsi_to_fcp β€” setup FCP command with data from scsi_cmnd

like, it literally takes your SCSI command and turns it into an FCP command. it's giving translator. it's giving "i speak both languages". πŸ¦‹


🌸 SYNOPSIS 🌸

void zfcp_fc_scsi_to_fcp (struct fcp_cmnd *fcp , struct scsi_cmnd *scsi
);

returns nothing (void), takes two pointers, does the thing. no cap, that's the whole signature πŸŽ€


πŸ’– ARGUMENTS πŸ’–

  • fcp β€” the fcp_cmnd you want to set up. this is the destination, the main character of the operation, the one getting filled in 🫢
  • scsi β€” the scsi_cmnd where you're pulling the info from. specifically the LUN, the task attributes/flags, and the CDB. so yeah, it's the source of truth, the origin story, the "where to get" of it all πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘

ok so if you're going down the rabbit hole (and you should, it's a whole vibe), the Kernel file ./drivers/s390/scsi/zfcp_fc.h is the home base. and then there's this whole friend group of related structs and enums, all of them living their best lives with their (9) manpage suffixes:

  • struct zfcp_fc_event(9)
  • struct zfcp_fc_events(9)
  • struct zfcp_fc_gid_pn_req(9)
  • struct zfcp_fc_gid_pn_rsp(9)
  • struct zfcp_fc_gspn_req(9)
  • struct zfcp_fc_gspn_rsp(9)
  • struct zfcp_fc_rspn_req(9)
  • struct zfcp_fc_req(9)
  • enum zfcp_fc_wka_status(9)
  • struct zfcp_fc_wka_port(9)
  • struct zfcp_fc_wka_ports(9)
  • zfcp_fc_fcp_tm(9)

lowkey a whole squad. go read them, they're iconic πŸ”₯


ngl this page is short but every word is doing its job β€” don't skip the arguments section, the LUN/flags/CDB trio is the whole point πŸ’€

and that's the tea! πŸ“ this lil writeup lives in ./drivers/s390/scsi, dated October 2026, and it's filed under zfcp_fc_scsi_to_fcp(9) β€” go forth and set up those FCP commands, bestie, you've got this πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from