STRUCT KEMPLD_DEVICE_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct kempld_device_data(9) πŸ’–

okay so this is a page from the Kernel API Manual, and bestie, we're about to get into the internal representation of the PLD device β€” yes, that's the whole NAME, and yes, it ate. 🫢


✨ NAME ✨

struct kempld_device_data β€” literally the internal representation of the PLD device. that's it, that's the vibe. πŸ’…


🌸 SYNOPSIS 🌸

no cap, here's the whole struct, exactly as it lives:

struct kempld_device_data {
    void __iomem            *io_base;
    void __iomem            *io_index;
    void __iomem            *io_data;
    u32 pld_clock;
    u32 feature_mask;
    struct device           *dev;
    struct kempld_info      info;
    struct mutex            lock;
 };

main character struct energy, honestly. πŸ‘‘


πŸ¦‹ Members πŸ¦‹

okay so every single member, one by one, no skips, we're not doing that here:

  • io_base β€” the pointer to the IO memory. iconic pointer behaviour, it's giving "where the memory actually lives." ✨
  • io_index β€” pointer to the IO index register. this is the index one. πŸŽ€
  • io_data β€” pointer to the IO data register. and this is the data one. matching set, slay. πŸ’œ
  • pld_clock β€” the PLD clock frequency, a u32. it's literally the frequency, periodt.
  • feature_mask β€” the PLD feature mask. features, but masked. iykyk. 🌈
  • dev β€” pointer to the kernel device structure. the kernel device structure specifically, bestie, not a whole device, just the pointer. 😭
  • info β€” a struct kempld_info, the KEMPLD info structure. yes the name is right there twice, it's fine, it's consistent. ⭐
  • lock β€” the PLD mutex. it's a struct mutex. it locks. do not disrespect it. πŸ”₯

🌟 SEE ALSO 🌟

go look at these, they're linked and they matter:

  • the kernel file ./include/linux/mfd/kempld.h
  • struct kempld_info(9)
  • struct kempld_platform_data(9)

fr fr, the source lives at ./include/linux/mfd and this page is dated October 2026 β€” so like, future us wrote it, and she understood the assignment. πŸ§šπŸ’–

k byeeee, go read the header file, mwah πŸŽ€πŸ’…πŸ¦‹

πŸ“¦ where this page comes from