sd_zbc_read_zones(9)
π sd_zbc_read_zones(9) π
okay so bestie, welcome to the Kernel API Manual β yes we're in that part of the kernel, the SCSI zoned-storage part, and honestly? it's kind of iconic. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
sd_zbc_read_zones β literally the function that reads your zone info and then updates the request queue. that's the whole vibe. π
πΈ SYNOPSIS πΈ
int sd_zbc_read_zones (struct scsi_disk *sdkp , struct queue_limits *lim
, u8 buf[SD_BUF_SIZE] );
like, three args, one int back. no cap. β¨
π ARGUMENTS π
sdkpβ the SCSI disk pointer. your main character struct, fr fr. πlimβ the queue limits that get read into. this is where the tea gets stored. πbufβ a 512 byte buffer used for storing SCSI command output. yes, exactly 512, don't @ me. π
π¦ DESCRIPTION π¦
so what does it actually do? it reads zone information and updates the request queue zone characteristics β and it also updates the zoned device information inside *sdkp. two things, one function, we love a multitasker. π
it gets called by sd_revalidate_disk before the gendisk capacity has been set. like, the capacity isn't ready yet at that point, so keep that in mind, okay? timing is everything. β°
ngl bestie, that ordering detail is the whole point β don't just skim past it. π
π₯ SEE ALSO π₯
kernel file stuff incoming, all of it, no skipping:
./drivers/scsi/sd_zbc.csd_zbc_parse_report(9)sd_zbc_do_report_zones(9)sd_zbc_alloc_report_buffer(9)sd_zbc_zone_sectors(9)sd_zbc_report_zones(9)sd_zbc_setup_zone_mgmt_cmnd(9)sd_zbc_complete(9)sd_zbc_check_zoned_characteristics(9)sd_zbc_check_capacity(9)
like a whole friend group of functions. go say hi to all of them. π§π
and that's the page!! π this little beauty lives over in ./drivers/scsi, dated October 2026 β so like, future vibes only. slay, bye, 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