peci_pci_local_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 bestie
  • bus β€” bus πŸ’«
  • dev β€” device
  • func β€” function
  • reg β€” register
  • data β€” 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 0 means something went sideways

✨ SEE ALSO ✨

go check these out, they're all in the same friend group πŸ¦‹:


πŸ’€ quick vibe check before you go: this one's from the ./drivers/peci directory, tagged October 2026, and it's filed under peci_pci_local_read(9) in the Kernel API Manual. now go forth and read those 32 bits, bestie πŸŒˆπŸ’–πŸ§š
πŸ“¦ where this page comes from