zl3073x_flash_block(9)
π zl3073x_flash_block π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a kernel function, and it's called zl3073x_flash_block β say that three times fast, I dare you π
π NAME
zl3073x_flash_block β downloads a memory block and flashes it, no cap π₯
β¨ SYNOPSIS
int zl3073x_flash_block (struct zl3073x_dev *zldev , const char
*component , u32 operation , u32 page , u32 addr , const void *data ,
size_t size , struct netlink_ext_ack *extack );
likeβ¦ that's a lot of arguments, but she handles it, main character energy π
π¦ ARGUMENTS
zldevβ the zl3073x device structure π«Ά your actual device, bestiecomponentβ component name, literally just the name of the thingoperationβ the flash operation to perform, like which move we're doing πpageβ destination flash page π that's where it's goingaddrβ device memory address to load data, i.e. where the data goes firstdataβ pointer to the data to be flashed β¨ the actual payloadsizeβ size of data, yes we need to know how much πextackβ netlink extack pointer to report errors, so when things go wrong (and they might π) it gets reported properly
πΈ DESCRIPTION
So here's the vibe: the function downloads the memory block given by the data pointer and the size size, and flashes it into internal memory on flash page page π₯
The internal flash operation that the firmware actually performs? That's specified by the operation parameter π« so like, operation is the one calling the shots, iykyk.
β RETURN
0on success β slay, we ate π<0on error β not slay, something went wrong π
π SEE ALSO
Kernel file ./drivers/dpll/zl3073x/flash.c and the whole friend group:
zl3073x_flash_download(9)zl3073x_flash_error_check(9)zl3073x_flash_wait_ready(9)zl3073x_flash_cmd_wait(9)zl3073x_flash_get_sector_size(9)zl3073x_flash_sectors(9)zl3073x_flash_page(9)zl3073x_flash_page_copy(9)zl3073x_flash_mode_verify(9)zl3073x_flash_mode_enter(9)zl3073x_flash_mode_leave(9)
bestie reminder: all of these live in ./drivers/dpll/zl3073x β go read them, they're iconic π
anyway that's the page! π§ from ./drivers/dpll/zl3073x, dated October 2026, this has been zl3073x_flash_block(9) β mwah, go flash something responsibly ππ
π¦ 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