nvmem_device_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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