STRUCT INTEL_M10BMC_FLASH_BULK_OPS(9)
β¨ NAME β¨
Okay bestie, welcome to the struct intel_m10bmc_flash_bulk_ops page π
β this is the section 9 (Kernel API Manual) entry for it, and it's literally just the device-specific ops that make flash reads and writes happen. That's it, that's the vibe π¦
πΈ SYNOPSIS πΈ
struct intel_m10bmc_flash_bulk_ops {
int (*read)(struct intel_m10bmc *m10bmc, u8 *buf, u32 addr, u32 size);
int (*write)(struct intel_m10bmc *m10bmc, const u8 *buf, u32 offset, u32 size);
int (*lock_write)(struct intel_m10bmc *m10bmc);
void (*unlock_write)(struct intel_m10bmc *m10bmc);
};
Like, four function pointers, one struct, zero drama β¨
π Members π
readβ reads a block of data from flash π (yes it takesstruct intel_m10bmc *m10bmc,u8 *buf,u32 addr,u32 sizeβ the whole squad)writeβ writes a block of data to flash βοΈ (same energy:struct intel_m10bmc *m10bmc,const u8 *buf,u32 offset,u32 size)lock_writeβ locks flash access for erase+write π bestie this is the bouncer at the clubunlock_writeβ unlocks flash access π thank u, next
π DESCRIPTION π
So here's the tea, and it's important β: write must be protected with lock_write and unlock_write. Like, not optional. Not a suggestion. Protect your writes, periodt π«Ά
And while the flash is locked, read returns -EBUSY π β so don't come for reads while the lock is held, it's giving "closed for maintenance". It's literally in the source, no cap.
β οΈ Fr fr: lock around your writes withlock_write/unlock_write, and expect-EBUSYfromreadwhile that lock is held. That's the whole rule π
π SEE ALSO π
- Kernel file
./include/linux/mfd/intel-m10-bmc.h struct m10bmc_csr_map(9)struct intel_m10bmc_platform_info(9)struct intel_m10bmc(9)
iykyk π
β¨ that's the whole page, go read the header file β¨
Cute lil sign-off π: this one lives in ./include/linux/mfd, stamped October 2026, and the page header/footer still say struct intel_m10bmc_flash_bulk_ops(9) β mwah, bye π
π¦ 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