sd_zbc_setup_zone_mgmt_cmnd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– sd_zbc_setup_zone_mgmt_cmnd πŸ’–

Okay bestie, so this is a page from the Kernel API Manual β€” yes, that kernel API manual β€” and it's all about one lil function with a very long name: sd_zbc_setup_zone_mgmt_cmnd. Literally say it five times fast, I dare you. 🫢


✨ NAME ✨

sd_zbc_setup_zone_mgmt_cmnd β€” prepare a zone ZBC_OUT command. The operations can be RESET WRITE POINTER, OPEN, CLOSE or FINISH. That's it, that's the whole vibe check. πŸŽ€


🌸 SYNOPSIS 🌸

blk_status_t sd_zbc_setup_zone_mgmt_cmnd (struct scsi_cmnd *cmd ,
unsigned char op , bool all );

Look at that signature, she's iconic ngl. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • cmd β€” the command to setup. It's the main character here, everything else is supporting cast. πŸ’…
  • op β€” operation to be performed. Yes, the actual thing we're doing. Slay.
  • all β€” all zones control. Like, every zone. The whole group chat, not just one. πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

So this gets called from sd_init_command for REQ_OP_ZONE_RESET, REQ_OP_ZONE_RESET_ALL, REQ_OP_ZONE_OPEN, REQ_OP_ZONE_CLOSE or REQ_OP_ZONE_FINISH requests. That's the five callers, no cap, and I listed all five because we don't skip details in this house. πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/scsi/sd_zbc.c, and also the whole friend group:

And the directory ./drivers/scsi because that's where all the cool kids live. 🌈


That's the whole page, bestie! πŸ’– This one's from the kernel .9 docs, living in the ./drivers/scsi section, and it was dated October 2026 β€” so yeah, from the future, obviously, main character energy fr fr. πŸ¦‹πŸ’« Go forth and set up those zone management commands. Periodt. πŸŽ€

πŸ“¦ where this page comes from