zfcp_unit_sdev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is zfcp_unit_sdev(9) from the Kernel API Manual, and the whole vibe is: Return SCSI device for zfcp_unit. πŸŽ€


✨ SYNOPSIS ✨

struct scsi_device * zfcp_unit_sdev (struct zfcp_unit *unit );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • unit β€” the zfcp_unit where to get the SCSI device for. πŸ’…

🌸 RETURN 🌸

On success you get a scsi_device pointer, and NULL if there is no SCSI device for this zfcp_unit. That’s the whole return story, no cap. ✨


πŸ’œ DESCRIPTION πŸ’œ

On success, the caller also holds a reference to the SCSI device β€” and bestie, that reference must be released with scsi_device_put. Not optional, not a maybe, not a β€œlater” thing. πŸ’…

friendly little callback: you got a reference, so you gotta put it back with scsi_device_put. 🫢

🌈 SEE ALSO 🌈

Kernel file ./drivers/s390/scsi/zfcp_unit.c is the home base, and the whole squad is:


okay that’s the page, bestie 🫢 huge sparkle shoutout to the ./drivers/s390/scsi source/version and the October 2026 date β€” this has been zfcp_unit_sdev(9), and it ate. periodt βœ¨πŸ’–

πŸ“¦ where this page comes from