acpi_data_ge...operty_array(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so welcome to the acpi_data_get_property_array(9) page from the Kernel API Manual, bestie 🫢. This function is literally here to return an ACPI array property with given name. no cap.

✨ SYNOPSIS ✨

int acpi_data_get_property_array (const struct acpi_device_data *data ,
const char *name , acpi_object_type type , const union acpi_object **obj
);

πŸŽ€ ARGUMENTS πŸŽ€

  • data β€” ACPI data object to get the property from.
  • name β€” Name of the property.
  • type β€” Expected type of array elements.
  • obj β€” Location to store a pointer to the property value (if not NULL).

🌸 DESCRIPTION 🌸

Look up an array property with name and store a pointer to the resulting ACPI object at the location pointed to by obj if found. iconic behavior, honestly ✨

⚠️ bestie, listen: Callers must not attempt to free the returned objects. Those objects will be freed by the ACPI core automatically during the removal of data. so do not touch, okay? πŸ’€

πŸ”₯ RETURN πŸ”₯

  • 0 β€” if array property (package) with name has been found (success) πŸŽ‰
  • -EINVAL β€” if the arguments are invalid
  • -EINVAL β€” if the property doesn't exist
  • -EPROTO β€” if the property is not a package or the type of its elements doesn't match type

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./drivers/acpi/property.c β€” and the whole friend group:


mwah πŸ’‹ source/version: ./drivers/acpi β€’ date: October 2026 β€’ page: acpi_data_ge...operty_array(9) β€” bye bestie, go get that array! πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from