STRUCT ND_NAMESPACE_IO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the nd region driver. it's giving foundation. it's giving "the nd region driver made this." πŸ‘‘
  • res β€” a struct resource conversion of a NFIT SPA table. yes that's the whole description, don't look at me, it's literally converting a NFIT SPA table into a struct resource πŸ’…
  • size β€” cached resource_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:


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