STRUCT KEMPLD_PLATFORM_DATA(9)
π struct kempld_platform_data(9) β Kernel API Manual π
okay bestie, welcome to the Kernel API Manual, page for struct kempld_platform_data(9). this one's short and sweet and honestly kind of iconic for it. let's go β¨
πΈ NAME πΈ
struct kempld_platform_data β the PLD hardware configuration structure. that's it, that's the whole job: it's a lil bundle of settings that tells the kernel how the PLD is wired up π«Ά
β¨ SYNOPSIS β¨
here's the shape of it, literally, exactly, don't touch:
struct kempld_platform_data {
u32 pld_clock;
int gpio_base;
struct resource *ioresource;
void (*get_hardware_mutex) (struct kempld_device_data *);
void (*release_hardware_mutex) (struct kempld_device_data *);
int (*get_info) (struct kempld_device_data *);
int (*register_cells) (struct kempld_device_data *);
};
like, look at her. fields AND function pointers. a whole personality π
π¦ Members π¦
pld_clockβ the PLD clock frequency. yes, au32, yes it's the speed. that's the vibe βgpio_baseβ the GPIO base pin number. where the pins start numbering, basically πioresourceβ IO addresses of the PLD. thestruct resource *that says "she lives here" πget_hardware_mutexβ the PLD specificget_mutexcallback. you grab the mutex through this bad boy πrelease_hardware_mutexβ the PLD specificrelease_mutexcallback. and this is how you let go bestie, no hard feelings π«Άget_infoβ the PLD specificget_infocallback. it gets the info. it's giving "named exactly what she does" πregister_cellsβ the PLD specificregister_cellscallback. she registers the cells, that's the whole arc π₯
ngl, every one of these callbacks takes a struct kempld_device_data * and honestly that's the most consistent thing about them π
π SEE ALSO π
- Kernel file
./include/linux/mfd/kempld.h struct kempld_info(9)struct kempld_device_data(9)
go read those too, iykyk π
aaaand that's the page! mwah π this little icon was brought to you by the folks at ./include/linux/mfd, dated October 2026, and her full title is struct kempld_platform_data(9). slay, bye π§ββοΈπ
π¦ 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