peci_ep_pci_local_read(9)
πΈ peci_ep_pci_local_read(9) πΈ
okay so bestie, welcome to the Kernel API Manual β section 9 ofc, this is the driver-adjacent girlie zone π
β¨ NAME β¨
peci_ep_pci_local_read β read a 32-bit memory location using a raw address, no cap π«Ά
π¦ SYNOPSIS π¦
int peci_ep_pci_local_read (struct peci_device *device , u8 seg , u8 bus
, u8 dev , u8 func , u16 reg , u32 *data );
like. that's a lot of arguments and she's literally serving them all π but it's fine, we go through every single one below π
π ARGUMENTS π
deviceβ the PECI device that this request is gonna be sent to. she's the main character, everyone else is just supporting cast πsegβ PCI segmentbusβ busdevβ devicefuncβ functionregβ registerdataβ where the read data goes to live. this is the lil home for your result π β¨
ngl,bus,dev,funcandregare giving "the manpage gave up explaining" energy, but that's literally what it says, so we're keeping it exactly like that π
π DESCRIPTION π
So she's like peci_pci_local_read, but β and this is the iconic part β she uses the RdEndpointConfig PECI command instead π₯ same vibes, different command, iykyk.
β RETURN β
0if it succeeded π- other values in case of errors π (yes, that's all it says, she's mysterious like that)
π SEE ALSO π
- Kernel file
./drivers/peci/cpu.c peci_temp_read(9)peci_pcs_read(9)peci_pci_local_read(9)peci_mmio_read(9)
go read those next, bestie, they're all in ./drivers/peci and they're all slay π
that's the whole page, periodt. she lives in ./drivers/peci, she's dated October 2026, and this lil group chat was brought to you by the Kernel API Manual π
π§π
π¦ 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