STRUCT FAUX_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ struct faux_device(9) β€” Kernel API Manual πŸŽ€

hey bestie πŸ’– welcome to the struct faux_device(9) page, aka the Kernel API Manual’s little corner for a β€œfaux” device. it’s giving very specific, very useful, and honestly kinda iconic ✨


🌸 NAME 🌸

struct faux_device β€” a β€œfaux” device πŸ’…

🫢 SYNOPSIS 🫢

struct faux_device {
    struct device dev;
};

✨ Members ✨

  • dev β€” internal struct device of the object. that’s the member, bestie, no cap 🫢

πŸ’– Description πŸ’–

A simple faux device that can be created/destroyed. reach for it when a driver only needs to have a device to β€œhang” something off β€” like, that’s the whole assignment. it can be used for downloading firmware or other basic tasks. use this instead of a struct platform_device if the device has no resources assigned to it at all. periodt. πŸ”₯

πŸ‘€ SEE ALSO πŸ‘€

  • Kernel file ./include/linux/device/faux.h
  • struct faux_device_ops(9)

later, bestie πŸ’‹ this page comes from source/version ./include/linux/device and is dated October 2026 β€” struct faux_device(9) out πŸŽ€βœ¨

πŸ“¦ where this page comes from