thc_acpi_get_property(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ thc_acpi_get_property(9) β€” the Kernel API Manual, but make it cute

okay so bestie, welcome to the Kernel API Manual entry for thc_acpi_get_property πŸ’… this one's a little helper that goes and asks a device what its ACPI parameters are, and honestly? it's giving "small function, big responsibilities." let's get into it 🫢


✨ NAME ✨

thc_acpi_get_property β€” literally just Query device ACPI parameter πŸŽ€


🌸 SYNOPSIS 🌸

int thc_acpi_get_property (struct acpi_device *adev , const guid_t *guid
, u64 rev , u64 func , acpi_object_type type , void *prop_buf );

no cap, that's the whole signature πŸ‘‘ copy it exactly, don't be out here renaming things πŸ™ˆ


πŸ¦‹ ARGUMENTS πŸ¦‹

every single one of these matters, so pay attention bestie:

  • adev β€” point to ACPI device. this is the device you're interrogating, main character of the operation ✨
  • guid β€” ACPI method's guid. yes, a whole guid_t pointer, and yes it's const because we're respectful πŸ’…
  • rev β€” ACPI method's revision. a u64, so she's got range 🌈
  • func β€” ACPI method's function number. also a u64 πŸ”₯
  • type β€” ACPI parameter's data type. an acpi_object_type, so the function knows what flavour of data to expect πŸ“
  • prop_buf β€” point to return buffer. this is where the answer lands, so it better be ready πŸ’–

🧚 DESCRIPTION 🧚

so basically: This is a helper function for device to query its ACPI parameters.

that's it, that's the vibe πŸ’€ it's a helper β€” a little support-system bestie for devices that need to go fetch their own ACPI parameter info. not a whole journey, just a reliable little utility that does its one job and does it well. slay ⭐


πŸŽ€ RETURN πŸŽ€

  • 0 β€” if successful. icons only, we love a clean zero πŸ’š
  • ENODEV β€” on failed. 😭 yeah, if it flops you're getting ENODEV back, so check that return value fr fr
lowkey important: check the return, bestie. 0 means you ate, ENODEV means no device for you πŸ™ˆ

🫢 SEE ALSO 🫢

the kernel file in question, in all its glory:

./drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c

and the whole friend group of related functions, no gatekeeping here:

go read them, they're all part of the same intel-quickspi storyline πŸ’œ


and that's the page!! πŸ¦‹ sign-off time: this came out of ./drivers/hid/intel-thc-hid/in... (yes it's truncated in the original, don't come for me πŸ’€), dated October 2026, and it's the thc_acpi_get_property(9) manual page. k bye, ily, go check your return codes πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from