STRUCT NVMEM_CELL_INFO(9)
π struct nvmem_cell_info(9) π
okay bestie, welcome to the Kernel API Manual β this is the page for struct nvmem_cell_info, aka the little glow-up sheet that describes one single NVMEM cell. no cap, it's giving "character creation screen for your EEPROM data". let's get into it π
β¨ NAME β¨
struct nvmem_cell_info β NVMEM cell description. that's it, that's the whole vibe: it's the description of a cell. π¦
πΈ SYNOPSIS πΈ
struct nvmem_cell_info {
const char *name;
unsigned int offset;
size_t raw_len;
unsigned int bytes;
unsigned int bit_offset;
unsigned int nbits;
struct device_node *np;
nvmem_cell_post_process_t read_post_process;
void *priv;
};
like, look at her. every field is a little main character in her own right. let's meet them one by one π
π Members π
nameβ Name. yes bestie, she has a name. iconic behavior only. πoffsetβ Offset within the NVMEM device. literally where in the device this cell lives, so you don't go grabbing the wrong bytes like a menace.raw_lenβ Length of raw data (without post processing). this is the pre-glow-up length, before any post processing gets its hands on it. π§bytesβ Length of the cell. the actual cell length, fr fr.bit_offsetβ Bit offset if cell is smaller than a byte. yes, bit offset β we're going sub-byte, we're going feral, we're counting individual bits now. πnbitsβ Number of bits. how many of those little guys we're working with.npβ Optional device_node pointer. optional! she doesn't have to be there! lowkey a free spirit. π¦read_post_processβ Callback for optional post processing of cell data on reads. so when you read, this hook can do a little extra processing on the data. also optional, also a free spirit. β¨privβ Opaque data passed to theread_post_processhook. the mystery bag π you hand it over and the hook figures it out β not our business what's inside, and that's the point.
ngl the "optional" ones are lowkey the moment here βnpandread_post_processcan both just... not exist on a given cell, and that's valid π
π₯ SEE ALSO π₯
- Kernel file
./include/linux/nvmem-provider.h struct nvmem_keepout(9)struct nvmem_config(9)struct nvmem_layout(9)of_nvmem_layout_get_container(9)
go read those next, bestie, iykyk π«Ά
and that's the whole page!! slay π this masterpiece lives in ./include/linux and it's dated October 2026, and the page footer is literally just struct nvmem_cell_info(9) again because she's her own hype woman. periodt. πβ
π¦ 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