hv_pci_enter_d0(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hv_pci_enter_d0 β€” a Kernel API Manual moment

okay so bestie, we're in the Kernel API Manual today and the star of the show is hv_pci_enter_d0(9) ✨ she's a tiny function with a big job and honestly? we stan.


πŸŽ€ NAME πŸŽ€

hv_pci_enter_d0 β€” brings the "bus" into the D0 power state πŸ”₯ (yes the quotes around "bus" are doing a lot of work here, and yes we're keeping them fr fr)


✨ SYNOPSIS ✨

int hv_pci_enter_d0 (struct hv_device *hdev );

like literally that's it, that's the whole call πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • hdev β€” VMBus's tracking struct for this root PCI bus 🫢 that's your whole input, bestie, one single pointer to the tracking struct VMBus keeps for the root PCI bus. she doesn't need anything else, she's low maintenance.

πŸ‘‘ RETURN πŸ‘‘

  • 0 on success πŸŽ‰ slay
  • -errno on failure 😭 so like, whatever negative errno value it hands back, that's your answer. check it, always check it.

🌸 SEE ALSO 🌸

the girlies in the group chat, aka the Kernel file ./drivers/pci/controller/pci-hyperv.c and this entire extended friend group:


ngl that's a whole lot of friends but they're all listed, every single one, no cap πŸ’–

mwah that's the page! brought to you from the ./drivers/pci/controller directory, dated October 2026, and this whole thing is page hv_pci_enter_d0(9) of the Kernel API Manual β€” ily, go read pci-hyperv.c bestie πŸ§šπŸ’œ

πŸ“¦ where this page comes from