sd_zbc_do_report_zones(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– sd_zbc_do_report_zones(9) πŸ’–

okay bestie, welcome to this Kernel API Manual page β€” we're talking about sd_zbc_do_report_zones(9), and yes it's exactly as niche and iconic as it sounds. πŸ¦‹


🌸 NAME 🌸

sd_zbc_do_report_zones β€” issue a REPORT ZONES scsi command. that's it, that's the whole name, slay. ✨

✨ SYNOPSIS ✨

int sd_zbc_do_report_zones (struct scsi_disk *sdkp , unsigned char *buf
       , unsigned int buflen , sector_t lba , bool partial );

πŸŽ€ ARGUMENTS πŸŽ€

  • sdkp β€” the target disk. πŸ’½
  • buf β€” the vmalloc-ed buffer to use for the reply. 🧺
  • buflen β€” the buffer size. πŸ“
  • lba β€” start LBA of the report. 🎯
  • partial β€” do partial report. 🫑

πŸ’… DESCRIPTION πŸ’…

okay so this one is for internal use during device validation. periodt.

Using partial=true can significantly speed up execution of a report zones command because the disk does not have to count all possible report matching zones and will only report the count of zones fitting in the command reply buffer. literally the shortcut of it all. ⚑

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file ./drivers/scsi/sd_zbc.c is home base, and these are the linked besties:


mwah πŸ’‹ cute little sign-off: this page comes from ./drivers/scsi, dated October 2026, and it's literally called sd_zbc_do_report_zones(9). take care, bestie 🫢

πŸ“¦ where this page comes from