STRUCT ND_NAMESPACE_COMMON(9)
π 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 (thinkbtt, 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 π
- Kernel file
./include/linux/nd.h struct nvdimm_pmu(9)struct nd_namespace_io(9)struct nd_namespace_pmem(9)nvdimm_read_bytes(9)nvdimm_write_bytes(9)
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
- 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