sd_zbc_alloc_report_buffer(9)
π sd_zbc_alloc_report_buffer(9) π
okay so this is the Kernel API Manual page for sd_zbc_alloc_report_buffer(9), and weβre about to make buffer allocation make sense, bestie. π«Ά
πΈ NAME πΈ
sd_zbc_alloc_report_buffer β allocate a buffer for report zones reply. Periodt. π
β¨ SYNOPSIS β¨
void * sd_zbc_alloc_report_buffer (struct scsi_disk *sdkp , unsigned int
nr_zones , size_t *buflen );
π ARGUMENTS π
sdkpβ the target disk π½nr_zonesβ maximum number of zones to report π₯buflenβ size of the buffer allocated π
π¦ DESCRIPTION π¦
okay so the mission is simple: try to allocate a reply buffer for the number of requested zones. π«
The size of the buffer allocated may be smaller than requested, because it has to satify (thatβs the sourceβs spelling, not mine π) the device constraint (max_hw_sectors, max_segments, etc). Itβs giving βthe device said βthatβs too much, bestieββ energy. π
It returns the address of the allocated buffer and updates buflen with the size of the allocated buffer. So you get the pointer and the actual size, cute. π«Ά
π SEE ALSO π
- Kernel file:
./drivers/scsi/sd_zbc.c sd_zbc_parse_report(9)sd_zbc_do_report_zones(9)sd_zbc_zone_sectors(9)sd_zbc_report_zones(9)sd_zbc_setup_zone_mgmt_cmnd(9)sd_zbc_complete(9)sd_zbc_check_zoned_characteristics(9)sd_zbc_check_capacity(9)sd_zbc_read_zones(9)
signed off from ./drivers/scsi, October 2026 edition, for sd_zbc_alloc_report_buffer(9) β bye bestie, slay your zones πβ¨
π¦ 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