sd_zbc_parse_report(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sd_zbc_parse_report(9) πŸ’…

okay so this page is from the Kernel API Manual, and today’s main character is sd_zbc_parse_report(9) β€” she parses a SCSI zone descriptor and honestly? iconic. πŸ¦‹

🌸 NAME 🌸

sd_zbc_parse_report β€” parse a SCSI zone descriptor. periodt. ✨

πŸŽ€ SYNOPSIS πŸŽ€

int sd_zbc_parse_report (struct scsi_disk *sdkp , const u8 buf[64] ,
unsigned int idx , struct blk_report_zones_args *args );

πŸ’– ARGUMENTS πŸ’–

  • sdkp β€” SCSI disk pointer. literally the SCSI disk pointer, bestie. πŸ’…
  • buf β€” SCSI zone descriptor. yes, the descriptor itself. 🌸
  • idx β€” index of the zone relative to the first zone reported by the current sd_zbc_report_zones call. iykyk. πŸ”₯
  • args β€” report zones arguments (callback, etc). 🫢

πŸ¦‹ RETURN πŸ¦‹

it gives you back the value returned by cb. that’s the whole vibe. 😭

✨ DESCRIPTION ✨

so basically: convert a SCSI zone descriptor into struct blk_zone format. additionally β€” yes, on top of that β€” it calls cb(blk_zone, data). πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/scsi/sd_zbc.c and its little friend group:


mwah πŸ’‹ the source/version is ./drivers/scsi and the date is October 2026 β€” that’s the footer tea, and we’re done. πŸŽ€

πŸ“¦ where this page comes from