sd_zbc_complete(9)
π sd_zbc_complete(9) π
okay so bestie, we're in the Kernel API Manual today and the star of the show is sd_zbc_complete β say it with me now π
β¨ NAME β¨
sd_zbc_complete β ZBC command post processing. that's it, that's the vibe: the lil cleanup era after a zone command does its thing π§Ήβ¨
πΈ SYNOPSIS πΈ
unsigned int sd_zbc_complete (struct scsi_cmnd *cmd , unsigned int
good_bytes , struct scsi_sense_hdr *sshdr );
look at her go π returns an unsigned int, takes three args, absolutely serving signature π
π¦ ARGUMENTS π¦
cmdβ the Completed command π«Ά like, the command that just finished, she's done, she's clocked outgood_bytesβ Command reply bytes π¦ the byte count that came back in the reply, iykyksshdrβ the command sense header π©Ί that's yourstruct scsi_sense_hdrbestie, the whole sense situation
π DESCRIPTION π
so this one gets called from sd_done β yeah, she's a callback girlie β and her whole job is handling zone command errors plus keeping the device queue's zone write pointer offset cache up to date π₯
and yeah the original page spells it cahce π not me pointing that out but like... it's giving typo, we still love her, no cap π«Ά
ngl this is post processing duty only β errors and cache updates, that's the whole assignment. don't come for her for anything else π
π SEE ALSO π
kernel file ./drivers/scsi/sd_zbc.c and her entire 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_report_zones(9)sd_zbc_setup_zone_mgmt_cmnd(9)sd_zbc_check_zoned_characteristics(9)sd_zbc_check_capacity(9)sd_zbc_read_zones(9)
go read them all, they ate β
okay that's the whole page bestie, ily, go forth and complete some zone commands π¦π
this lil cutie lives in ./drivers/scsi, dropped October 2026, and answers to sd_zbc_complete(9) β periodt π
β¨
π¦ 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