STRUCT ND_NAMESPACE_COMMON(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct nd_namespace_common(9)

okay so bestie, welcome to the Kernel API Manual ✨ β€” this is the page for struct nd_namespace_common, and ngl it's kind of the main character of namespace core infrastructure. Let's get into it 🫢


🌸 NAME

struct nd_namespace_common β€” core infrastructure of a namespace πŸ’–


✨ SYNOPSIS

struct nd_namespace_common {
    int force_raw;
    struct device dev;
    struct device *claim;
    enum nvdimm_claim_class claim_class;
    int (*rw_bytes)(struct nd_namespace_common *, resource_size_t
offset, void *buf, size_t size, int rw, unsigned long flags);
 };

like, that's the whole vibe right there πŸ‘‘


πŸŽ€ Members

okay so here's who's who in this struct, no cap πŸ”₯

  • force_raw β€” when this is set, it tells the namespace to ignore every other personality (think btt, bestie) 🫣 like sorry not sorry, we're going raw.
  • dev β€” the device model node πŸ’» literally the device-model representation of this thing.
  • claim β€” when set, it means another personality has already taken ownership of the namespace πŸ’€ so like… it's taken, okay?
  • claim_class β€” restricts the claim type to a given class πŸ”’ keeps things from getting messy.
  • rw_bytes β€” a function pointer that gives you access to the raw namespace capacity with byte-aligned transfers ✨ so if you need it byte by byte, this is the icon.

πŸ¦‹ SEE ALSO

go check these out too, iykyk πŸ’œ


and that's a wrap, bestie 🌈 this page came straight out of ./include/linux and it's dated October 2026 ⭐ β€” periodt, go slay some namespaces πŸ’…πŸ‘‘

πŸ“¦ where this page comes from