STRUCT KEMPLD_DEVICE_DATA(9)
π 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, au32. 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β astruct 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 astruct 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
- 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