zfcp_get_port_by_wwpn(9)
π zfcp_get_port_by_wwpn(9)
okay so this is a page straight out of the Kernel API Manual bestie, and today's main character is zfcp_get_port_by_wwpn β the little function whose whole entire job is finding a port in an adapter's port list by wwpn. no cap, that's it, that's the vibe. π¦
β¨ NAME β¨
zfcp_get_port_by_wwpn β find port in port list of adapter by wwpn π
πΈ SYNOPSIS πΈ
struct zfcp_port * zfcp_get_port_by_wwpn (struct zfcp_adapter *adapter ,
u64 wwpn );
like yes, it returns a struct zfcp_port *, and yes it takes those two args, we love a clean signature β¨
π ARGUMENTS π
adapterβ pointer to adapter to search for port π this is the adapter you're digging through, the search zone, the place where the port list lives.wwpnβ wwpn to search for π the thing you're looking for, typed as au64. it's giving "find my port" energy.
β RETURN β
pointer to zfcp_port or NULL π«Ά
so like β you either get your port back, or you get NULL. both are valid outcomes bestie, don't take NULL personally π
π SEE ALSO π
Kernel file ./drivers/s390/scsi/zfcp_aux.c plus these iconic siblings:
go read them, iykyk π
okay that's the whole page, and fr fr the source/version is ./drivers/s390/scsi, dated October 2026 β shoutout to that path for holding it down, mwah πβ¨π
π¦ 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