zfcp_diag_adapter_setup(9)
πΈ zfcp_diag_adapter_setup(9) β kernel API manual, bestie edition πΈ
okay so picture this: it's a zfcp_diag_adapter_setup(9) moment and you're holding the manual from the Kernel API Manual section nine, and honestly? it's giving "small function, big responsibility." let's get into it π
β¨ NAME β¨
zfcp_diag_adapter_setup β setting up the storage for adapter diagnostics, periodt. that's the whole job and she does it π
π¦ SYNOPSIS π¦
int zfcp_diag_adapter_setup (struct zfcp_adapter *const adapter );
look at her. one argument, one int return, zero drama (mostly) β¨
π ARGUMENTS π
adapterβ the adapter you're setting up diagnostics for. that's your girl. that's the main character of this whole page π
π₯ DESCRIPTION π₯
So what's actually happening here? zfcp_diag_adapter_setup creates the data-structures that store the diagnostics for an adapter. that's it, that's the vibe β it's the setup step, the "let me build you a little home for your diagnostic data" moment π β¨
but ngl, here's the part you cannot skip:
β οΈ this overwrites whatever was stored before at zfcp_adapter->diagnostics! like, full replacement. no merge, no "keeps your old stuff safe," nothing. the previous contents are GONE. so if you had something living there before, it's not surviving this call π
π RETURN π
0β everything is OK. we slayed. the setup worked π-ENOMEMβ could not allocate all of or parts of the data-structures. and here's the good-ish news:zfcp_adapter->diagnosticsremains unchanged in that case, so nothing got nuked. she tried, she couldn't allocate, she left your data alone π«Ά
π SEE ALSO π
go read the kernel file ./drivers/s390/scsi/zfcp_diag.c β that's where the actual source lives, iykyk π and then check out her whole friend group:
zfcp_diag_adapter_free(9)zfcp_diag_update_xdata(9)zfcp_diag_update_port_data_buffer(9)zfcp_diag_update_config_data_buffer(9)zfcp_diag_update_buffer_limited(9)
they all hang out together, it's a whole ecosystem π
π quick reminder bestie: the overwrite thing is real. zfcp_adapter->diagnostics gets replaced, not merged. do not come crying to me later, I literally told you π
and that's the page!! this one comes to you from ./drivers/s390/scsi, dated October 2026, and it's zfcp_diag_adapter_setup(9) β go forth and set up those diagnostics, you absolute icon βπ§π
π¦ 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