thc_acpi_get_property(9)
π 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 wholeguid_tpointer, and yes it'sconstbecause we're respectful πrevβ ACPI method's revision. au64, so she's got range πfuncβ ACPI method's function number. also au64π₯typeβ ACPI parameter's data type. anacpi_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 gettingENODEVback, so check that return value fr fr
lowkey important: check the return, bestie.0means you ate,ENODEVmeans 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:
quickspi_get_acpi_resources(9)quickspi_irq_quick_handler(9)try_recover(9)quickspi_irq_thread_handler(9)quickspi_dev_init(9)quickspi_dev_deinit(9)quickspi_dma_init(9)quickspi_dma_deinit(9)quickspi_alloc_report_buf(9)quickspi_remove(9)quickspi_shutdown(9)
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
- 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