nvmem_cell_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ nvmem_cell_write(9) ✨

okay so bestie, welcome to the Kernel API Manual entry for nvmem_cell_write(9) β€” literally the "put bytes into the nvmem cell" girlie πŸ’…


πŸ’– NAME πŸ’–

nvmem_cell_write β€” write to a given nvmem cell πŸŽ€


🌸 SYNOPSIS 🌸

int nvmem_cell_write (struct nvmem_cell *cell , void *buf , size_t len );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • cell β€” the nvmem cell that's getting written to. she's the main character here πŸ‘‘
  • buf β€” the buffer that's bout to be written. the content, the vibe, the payload 🫢
  • len β€” length of the buffer being written to the nvmem cell. size matters, no cap πŸ“

⭐ RETURN ⭐

returns the length of bytes written β€” or, if it went sideways, a negative value on failure 😭 that's the vibe check fr


🌈 SEE ALSO 🌈

kernel file ./drivers/nvmem/core.c, plus the whole friend group of related calls, all here, all iconic:

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_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_device_write(9), nvmem_add_cell_lookups(9), nvmem_del_cell_lookups(9), nvmem_dev_name(9), nvmem_dev_size(9)

like, they're all right there, go say hi πŸ‘‹πŸ’œ


aaaaand that's the whole page bestie, hope it slayed πŸŽ€βœ¨ this one comes from ./drivers/nvmem, dated October 2026 β€” love her, no notes πŸ«ΆπŸ’…πŸ’–

πŸ“¦ where this page comes from