nvmem_device_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is nvmem_device_get(9) from the Kernel API Manual, and its whole job is: Get nvmem device from a given id ✨. That's the vibe. It's giving "hand me the nvmem device that matches this id" energy, no cap πŸ’….

✨ SYNOPSIS ✨

struct nvmem_device * nvmem_device_get (struct device *dev , const char
       *dev_name );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device that uses the nvmem device 🫢. Like, this is the device doing the using, okay?
  • dev_name β€” the name of the requested nvmem device 🌸. Literally the name you're asking for, bestie.

🌸 RETURN 🌸

Vibe check: it returns ERR_PTR on error 😭, or a valid pointer to a struct nvmem_device on success πŸ‘‘. So either sad error-pointer energy or the actual nvmem device pointer, periodt.

πŸ¦‹ SEE ALSO πŸ¦‹

bestie, there is a whole friend group of related pages and the kernel file itself. Peep them all:


mwah πŸ’‹ β€” source/version ./drivers/nvmem, date October 2026, and this page is nvmem_device_get(9) 🫢 byeee πŸ’…

πŸ“¦ where this page comes from