zfcp_fc_scsi_to_fcp(9)
π 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β thefcp_cmndyou want to set up. this is the destination, the main character of the operation, the one getting filled in π«Άscsiβ thescsi_cmndwhere 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
- 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