kempld_write16(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… kempld_write16(9) β€” like, the Kernel API Manual page, bestie πŸŽ€

okay so you found your way to kempld_write16(9), a very iconic little entry in the Kernel API Manual (section 9, we love a numbered section ✨). sit down, grab a strawberry drink πŸ“, and let's get into it.


✨ NAME ✨

kempld_write16 β€” write 16 bit register. that's it, that's the whole vibe. writing. sixteen. bits. πŸ‘‘


🌸 SYNOPSIS 🌸

void kempld_write16 (struct kempld_device_data *pld , u8 index , u16 data );

literally just look at her. void return, three args, no notes. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pld β€” the kempld_device_data structure describing the PLD. it's the whole personality of the device, fr.
  • index β€” register index on the chip. which register we're talking about, iykyk.
  • data β€” new register value. the fresh little value going in. πŸ’–

πŸ’œ DESCRIPTION πŸ’œ

so here's the thing, and I need you to hear me on this one:

kempld_get_mutex must be called prior to calling this function.

like, must must. not optional, not "if you feel like it", not a suggestion. call the mutex first, bestie. πŸ”’ the page does not say what happens if you don't, so I'm not gonna invent drama β€” just know the manpage is very clear and I respect her for it. 😌


🌈 SEE ALSO 🌈

the whole friend group shows up here, and honestly? obsessed.

Kernel file ./drivers/mfd/kempld-core.c β€” the main character file itself. 🧚

then the crew:

(notice how kempld_get_mutex(9) is right there? yeah. we been knew. πŸ”₯)


and that's the page!! slay. πŸ’…

cute little sign-off: this gem lives under ./drivers/mfd, dated October 2026, and it's filed as kempld_write16(9) β€” periodt. ⭐
πŸ“¦ where this page comes from