sd_zbc_complete(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 out
  • good_bytes β€” Command reply bytes πŸ“¦ the byte count that came back in the reply, iykyk
  • sshdr β€” the command sense header 🩺 that's your struct scsi_sense_hdr bestie, 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 🌈:

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