STRUCT ND_NAMESPACE_IO(9)
π struct nd_namespace_io(9) π
okay bestie, welcome to the Kernel API Manual π β this is the page for struct nd_namespace_io, which is, like, the device representation of a persistent memory range. iconic behavior honestly β¨
πΈ NAME πΈ
struct nd_namespace_io β device representation of a persistent memory range. that's the whole vibe. π
β¨ SYNOPSIS β¨
lowkey the main character itself:
struct nd_namespace_io {
struct nd_namespace_common common;
struct resource res;
resource_size_t size;
void *addr;
struct badblocks bb;
};
like?? the way that struct just sits there being all structured. obsessed. π«Ά
π¦ MEMBERS π¦
okay so let's do a vibe check on every single field, no skipping, we're not doing that π
commonβ the namespace device core infrastructure, created by thendregion driver. it's giving foundation. it's giving "the nd region driver made this." πresβ astruct resourceconversion of aNFIT SPAtable. yes that's the whole description, don't look at me, it's literally converting a NFIT SPA table into a struct resource πsizeβ cachedresource_size(res)so we can do fast path size checks. it's literally the size, pre-computed, because nobody has time to recalculate. speed. slay. β‘addrβ the virtual address you use to access the namespace range. that's your door in, bestie πͺβ¨bbβ badblocks list for the namespace range. everyone's got a badblocks list, it's fine, we don't judge π«Ά
π SEE ALSO π
go read these next, i'm serious, they're the friend group:
- Kernel file
./include/linux/nd.hπ struct nvdimm_pmu(9)struct nd_namespace_common(9)struct nd_namespace_pmem(9)nvdimm_read_bytes(9)nvdimm_write_bytes(9)
ngl the whole point of this page is so you don't have to guess what each field means. highkey read it before you touch persistent memory, fr fr. ππ
alright that's the whole page babes π β this one came from ./include/linux and it's stamped October 2026, on the page struct nd_namespace_io(9). mwah, go forth and namespace responsibly π
π
π¦ 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