nvmem_add_cells(9)
π nvmem_add_cells(9) β Kernel API Manual β¨
okay bestie, welcome to the nvmem girlies' corner of the kernel β¨ this one's a section 9 manual page, and it's genuinely so straightforward you're gonna be obsessed.
πΈ NAME πΈ
nvmem_add_cells β literally just "add cell information to an nvmem device", no cap, that's the whole vibe π
π¦ SYNOPSIS π¦
int nvmem_add_cells (struct nvmem_device *nvmem , const struct
nvmem_cell_info *info , int ncells );
like, yes, that's the signature exactly as written, don't come for me π
β¨ ARGUMENTS β¨
nvmemβ the nvmem device you're adding cells to π«Ά this is the main character of the operation.infoβ the nvmem cell info you're adding to the device. the payload, the moment, the content.ncellsβ how many cells are living ininfo. yes, plural, it's a batch situation π₯
β RETURN β
0 on success, or a negative error code on failure π (she can't always slay, okay?)
π SEE ALSO π
the kernel file in question is ./drivers/nvmem/core.c β iconic source, go read it β and here's the whole friend group, all of them, in order, no skipping π
nvmem_add_one_cell(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_device_write(9)nvmem_add_cell_lookups(9)nvmem_del_cell_lookups(9)nvmem_dev_name(9)nvmem_dev_size(9)
okay that's the page!! no complicated flags, no gotchas, just vibes and a return value π§
mwah, that's the whole thing π this cutie lives in the ./drivers/nvmem source tree and it's dated October 2026, see you in the next man page 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