STRUCT KEMPLD_PLATFORM_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, a u32, 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. the struct resource * that says "she lives here" πŸ“
  • get_hardware_mutex β€” the PLD specific get_mutex callback. you grab the mutex through this bad boy πŸ’…
  • release_hardware_mutex β€” the PLD specific release_mutex callback. and this is how you let go bestie, no hard feelings 🫢
  • get_info β€” the PLD specific get_info callback. it gets the info. it's giving "named exactly what she does" 😭
  • register_cells β€” the PLD specific register_cells callback. 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