STRUCT HYPERBUS_OPS(9)
π struct hyperbus_ops(9) π
okay so this is from the Kernel API Manual, and it's literally the page for struct hyperbus_ops β the struct that's giving custom HyperBus operations. like, it's a vtable of function pointers and it's lowkey iconic π
β¨ NAME β¨
struct hyperbus_ops β the struct representing custom HyperBus operations π¦
πΈ SYNOPSIS πΈ
struct hyperbus_ops {
u16 (*read16)(struct hyperbus_device *hbdev, unsigned long addr);
void (*write16)(struct hyperbus_device *hbdev, unsigned long addr, u16 val);
void (*copy_from)(struct hyperbus_device *hbdev, void *to, unsigned long from, ssize_t len);
void (*copy_to)(struct hyperbus_device *dev, unsigned long to, const void *from, ssize_t len);
int (*calibrate)(struct hyperbus_device *dev);
};
no cap, that's the whole shape of it β five function pointers, each one a little main character π
π Members π
read16β reads 16 bits of data from flash in a single burst π₯ bestie this is the one you use to read from a non default address space, like the ID/CFI space. so when the normal address space isn't it, this is it β¨write16β writes 16 bits of data to flash in a single burst πΈ used to send a cmd to flash, or to write a single 16 bit word at a time. one little word, one little burst, slay πcopy_fromβ copies data from flash memory π₯ like, the flash is the source, you're pulling it out π«Άcopy_toβ copies data to flash memory π€ opposite vibe, you're pushing it in πcalibrateβ calibrates the HyperBus controller β it's giving "vibe check but for your controller" and it returns anintπ
π¦ SEE ALSO π¦
- Kernel file
./include/linux/mtd/hyperbus.hπ struct hyperbus_device(9)struct hyperbus_ctlr(9)hyperbus_register_device(9)hyperbus_unregister_device(9)
like, go read those next, iykyk π
okay that's the whole page, no notes π and for the sign-off cute bit: this lives in the source tree at ./include/linux/mtd and it's dated October 2026 β periodt, go forth and burst-read your flash ππ
π¦ 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