nvmem_dev_size(9)
π nvmem_dev_size (9) β a Kernel API Manual moment π
okay so bestie, welcome to the Kernel API Manual entry for nvmem_dev_size and honestly? she's a short one, but she's iconic. no cap. π
β¨ NAME β¨
nvmem_dev_size β get the size of a given nvmem device. that's it. that's the whole vibe. lowkey the most straightforward function in the whole nvmem cinematic universe π¦
πΈ SYNOPSIS πΈ
size_t nvmem_dev_size (struct nvmem_device *nvmem );
like, you hand her a device and she hands you back a size_t. transactional queen π
π ARGUMENTS π
nvmemβ nvmem device. literally just the device, bestie. that's the whole argument. one (1) singular device. go off, minimalism π
β RETURN β
size of the nvmem device. she returns it. that's the answer. size_t-shaped, device-sized, done. π₯
π¦ SEE ALSO π¦
the whole friend group shows up for this one, iykyk. and also the kernel file ./drivers/nvmem/core.c gets a shoutout, because that's where the magic lives π«
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_device_write(9)nvmem_add_cell_lookups(9)nvmem_del_cell_lookups(9)nvmem_dev_name(9)
bestie note: everything above is documented, none of it is me guessing. if you need the lore, ./drivers/nvmem/core.c is the source of truth. π«Ά
and that's the page!! manifesting a slay for your nvmem dev πβ¨
kisses, the ./drivers/nvmem directory π β October 2026 edition β this has been nvmem_dev_size(9), signing off π¦
π¦ 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