nvmem_device_write(9)
π nvmem_device_write π
okay bestie, welcome to nvmem_device_write from the Kernel API Manual β¨ this is the kernel API page for writing a cell to a given nvmem device, and we are keeping every single deet so you can absolutely slay this π«Ά
β¨ NAME β¨
nvmem_device_write β write cell to a given nvmem device. periodt π
πΈ SYNOPSIS πΈ
int nvmem_device_write (struct nvmem_device *nvmem , unsigned int offset
, size_t bytes , void *buf );
lowkey iconic signature, no notes π
π ARGUMENTS π
nvmemβ nvmem device to be written to. the main character we're writing into πoffsetβ offset in nvmem device. where in the device we're aiming, bestie πbytesβ number of bytes to write. the byte count, fr fr π’bufβ buffer to be written. that's the buffer getting written, no cap π§Ί
π RETURN π
length of bytes written or negative error code on failure. so the happy path hands you the length, and the bad-vibes path gives you a negative error code π
π¦ SEE ALSO π¦
Kernel file ./drivers/nvmem/core.c β and the whole squad is here: 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_cell_write(9), nvmem_device_read(9), nvmem_add_cell_lookups(9), nvmem_del_cell_lookups(9), nvmem_dev_name(9), nvmem_dev_size(9).
okay that's the whole page π
source ./drivers/nvmem, dated October 2026, and it's literally the nvmem_device_write(9) manual page β byeee 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