nvdimm_read_bytes(9)
π nvdimm_read_bytes(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this page is all about nvdimm_read_bytes, and it is literally giving βsynchronously read bytes from an nvdimm namespace.β no cap, itβs a whole little helper and weβre gonna walk through it together π«Άπ
πΈ NAME πΈ
nvdimm_read_bytes β synchronously read bytes from an nvdimm namespace π«
π SYNOPSIS π
int nvdimm_read_bytes (struct nd_namespace_common *ndns ,
resource_size_t offset , void *buf , size_t size , unsigned long flags
);
β¨ ARGUMENTS β¨
ndnsβ device to read π«Άoffsetβ namespace-relative starting offset πbufβ buffer to fill π§Ίsizeβ transfer length πflagsβ process (0) or atomic (1) context β‘
π DESCRIPTION π
okay so the tea here is short and sweet: buf is up-to-date upon return from this routine. thatβs it, thatβs the vibe check ββ¨
π₯ RETURN π₯
0 on success or a negative error code on failure. slay when itβs zero, sad little negative when itβs not ππ
π SEE ALSO π
go peek at these, bestie:
- Kernel file
./include/linux/nd.h struct nvdimm_pmu(9)struct nd_namespace_common(9)struct nd_namespace_io(9)struct nd_namespace_pmem(9)nvdimm_write_bytes(9)
and the cute little footer sign-off: source/version is ./include/linux, date is October 2026, and the page is nvdimm_read_bytes(9). 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