sd_zbc_report_zones(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ sd_zbc_report_zones ✨

okay so bestie, this is the sd_zbc_report_zones(9) page β€” it lives in the Kernel API Manual and it's literally the SCSI .report_zones() callback. yes, that one. come sit with me πŸŽ€


🌸 SYNOPSIS 🌸

int sd_zbc_report_zones(struct gendisk *disk, sector_t sector,
                        unsigned int nr_zones,
                        struct blk_report_zones_args *args);

she takes four things and returns an int, periodt πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • disk β€” the Disk you're reporting zones for, bestie. that's the one.
  • sector β€” the Start sector. where we're kicking things off ✨
  • nr_zones β€” Maximum number of zones to report. yes, maximum β€” she's not gonna overdo it πŸ™ˆ
  • args β€” Callback arguments. just hand 'em over 🫢

πŸ’– DESCRIPTION πŸ’–

so the block layer calls this one to iterate over zone information. that's the whole vibe. it's the go-between, the main character who shows up when the block layer needs to walk through zones 🧚

also, lowkey important: peep the disk->fops->report_zones calls in block/blk-zoned.c β€” that's where you'll see her in action, iykyk πŸ‘‘

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./drivers/scsi/sd_zbc.c

and the whole friend group, fr fr:

literally the whole ./drivers/scsi crew showing up to the group chat 🌈


that's the page!! πŸ’œ it's from ./drivers/scsi, dated October 2026, and it's sd_zbc_report_zones(9) β€” mwah, slay, go read some zones πŸ“βœ¨

πŸ“¦ where this page comes from