nvmem_device_cell_write(9)
πΎ nvmem_device_cell_write(9) πΎ
okay bestie, welcome to the Kernel API Manual β yes that's the manual name, we're being official today π
β and today's main character is nvmem_device_cell_write, the lil function that writes a cell to a given nvmem device. slay.
β¨ NAME β¨
nvmem_device_cell_write β write a cell to a given nvmem device. that's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
int nvmem_device_cell_write (struct nvmem_device *nvmem , struct
nvmem_cell_info *info , void *buf );
she takes three things and returns an int, no cap. π¦
π ARGUMENTS π
nvmemβ the nvmem device you're writing to. the target. the destination. the one getting the glow-up. β¨infoβ the nvmem cell info that's getting written. it's giving "the blueprint". πbufβ the buffer that gets written into the cell. the actual payload, the moment, the content. π
π₯ RETURN π₯
she hands back the length of bytes written β or, if things go sideways, a negative error code on failure. so likeβ¦ positive int = we ate π, negative int = π. check it, always. fr fr.
ngl bestie, do not ignore the negative return value, that's the whole point of it being there π
π SEE ALSO π
the whole squad, and yes we're listing every single one of them because everyone deserves their moment π«Ά
- Kernel file
./drivers/nvmem/core.cβ the source file, the mothership π nvmem_add_one_cell(9)nvmem_add_cells(9)nvmem_register_notifier(9)nvmem_unregister_notifier(9)nvmem_register(9)nvmem_unregister(9)devm_nvmem_register(9)of_nvmem_device_get(9)nvmem_device_get(9)nvmem_device_find(9)devm_nvmem_device_put(9)nvmem_device_put(9)devm_nvmem_device_get(9)of_nvmem_cell_get(9)nvmem_cell_get(9)devm_nvmem_cell_get(9)devm_nvmem_cell_put(9)nvmem_cell_put(9)nvmem_cell_read(9)nvmem_cell_write(9)nvmem_cell_read_u8(9)nvmem_cell_read_u16(9)nvmem_cell_read_u32(9)nvmem_cell_read_u64(9)nvmem_cell_read_variable_le_u32(9)nvmem_cell_read_variable_le_u64(9)nvmem_device_cell_read(9)nvmem_device_read(9)nvmem_device_write(9)nvmem_add_cell_lookups(9)nvmem_del_cell_lookups(9)nvmem_dev_name(9)nvmem_dev_size(9)
lowkey that's a whole friend group. iykyk π
mwah π this page came to you straight from ./drivers/nvmem and it's dated October 2026 β stay hydrated, read your error codes, and go write some cells bestie π§ππ
π¦ 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