nvmem_register(9)
π nvmem_register(9) β like, the manual page, bestie π
okay so you pulled up nvmem_register(9) from the Kernel API Manual and you're like "what is this" β don't worry, I got you. This is the glow-up page. β¨
πΈ NAME πΈ
nvmem_register β registers an nvmem device for the given nvmem_config. And like, it also creates a binary entry in /sys/bus/nvmem/devices/dev-name/nvmem because it's an overachiever, obviously. π
π¦ SYNOPSIS π¦
struct nvmem_device * nvmem_register (const struct nvmem_config *config
);
literally that's it. one function. one pointer. so clean. π
π ARGUMENTS π
configβ the nvmem device configuration that the nvmem device gets created with. it'sconsttoo, so no touching β it's giving "look don't touch" energy and honestly? respect.
β RETURN β
so here's the vibe check on what comes back:
- on error, you get an
ERR_PTRβ so like, check it withIS_ERR()before you do anything cute with it, fr fr. π - on success, you get a valid pointer to
nvmem_device. slay. π
π SEE ALSO π
bestie, buckle up, this list is LONG and I'm not skipping a single one of these icons. the source file is Kernel file ./drivers/nvmem/core.c β that's where all the magic lives π§
nvmem_add_one_cell(9)nvmem_add_cells(9)nvmem_register_notifier(9)nvmem_unregister_notifier(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)
like I said. a lot. drink some water before you read all of those. π
ngl if you skipped the ERR_PTR check I'm gonna be so disappointed in you. that's not a vibe, that's a segfault waiting to happen π
and that's the page!! mwah π this one's from ./drivers/nvmem, dated October 2026 β go forth and register those devices, you absolute main character ππ«Ά
π¦ 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