peci_pci_local_read(9)
π peci_pci_local_read π
okay so bestie, welcome to the Kernel API Manual entry for peci_pci_local_read β yes it's a mouthful, yes you'll be saying it in your sleep, and yes it's actually iconic once you get it. grab a lil snack π, this one's short and sweet.
β¨ NAME β¨
peci_pci_local_read β literally reads a 32-bit memory location using a raw address. that's the whole vibe. no cap. π
β¨ SYNOPSIS β¨
int peci_pci_local_read (struct peci_device *device , u8 bus , u8 dev ,
u8 func , u16 reg , u32 *data );
look at her. six arguments. main character energy fr fr π
β¨ ARGUMENTS β¨
deviceβ the PECI device that this request is gonna be sent to π«Ά like, who's receiving the message bestiebusβ bus π«devβ devicefuncβ functionregβ registerdataβ where you stash the read data. that's the lil drop-off spot for whatever comes back π¦
ngl the middle four are giving "just labels" but they're doing their job and we respect them π
β¨ DESCRIPTION β¨
so what's the tea? it uses the RdPCIConfigLocal PECI command. that's it. that's the whole description. short king behavior ππ₯
β¨ RETURN β¨
0β slayed. succeeded. we love to see it β¨- other values β in case of errors π you know the drill, anything that isn't
0means something went sideways
β¨ SEE ALSO β¨
go check these out, they're all in the same friend group π¦:
- the kernel file
./drivers/peci/cpu.c peci_temp_read(9)peci_pcs_read(9)peci_ep_pci_local_read(9)peci_mmio_read(9)
π quick vibe check before you go: this one's from the./drivers/pecidirectory, tagged October 2026, and it's filed underpeci_pci_local_read(9)in the Kernel API Manual. now go forth and read those 32 bits, bestie πππ§
π¦ 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