kempld_write16(9)
π 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β thekempld_device_datastructure 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:
kempld_read8(9)kempld_write8(9)kempld_read16(9)kempld_read32(9)kempld_write32(9)kempld_get_mutex(9)kempld_release_mutex(9)kempld_get_info(9)
(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 askempld_write16(9)β periodt. β
π¦ 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