sd_zbc_setup_zone_mgmt_cmnd(9)
π 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:
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_complete(9)sd_zbc_check_zoned_characteristics(9)sd_zbc_check_capacity(9)sd_zbc_read_zones(9)
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
- 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