nvdimm_read_bytes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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