sd_zbc_report_zones(9)
β¨ 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 thedisk->fops->report_zonescalls inblock/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:
sd_zbc_parse_report(9)sd_zbc_do_report_zones(9)sd_zbc_alloc_report_buffer(9)sd_zbc_zone_sectors(9)sd_zbc_setup_zone_mgmt_cmnd(9)sd_zbc_complete(9)sd_zbc_check_zoned_characteristics(9)sd_zbc_check_capacity(9)sd_zbc_read_zones(9)
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
- 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