A partire dal 27 marzo 2025, ti consigliamo di utilizzare android-latest-release
anziché aosp-main
per compilare e contribuire ad AOSP. Per ulteriori informazioni, vedi Modifiche ad AOSP.
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Riferimento alla struttura hw_module_methods_t
#include <
hardware.h
>
Definizione nella riga
156
del file
hardware.h
.
Aprire un dispositivo specifico
Definizione nella riga
158
del file
hardware.h
.
La documentazione di questa struttura è stata generata dal seguente file:
I campioni di contenuti e codice in questa pagina sono soggetti alle licenze descritte nella Licenza per i contenuti. Java e OpenJDK sono marchi o marchi registrati di Oracle e/o delle sue società consociate.
Ultimo aggiornamento 2025-07-27 UTC.
[null,null,["Ultimo aggiornamento 2025-07-27 UTC."],[],[],null,["# Android Hardware Abstraction Layer: hw_module_methods_t Struct Reference\n\nhw_module_methods_t Struct Reference\n====================================\n\n[Data Fields](#pub-attribs) \nhw_module_methods_t Struct Reference \n\n`\n#include \u003c\n`[hardware.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/hardware.h)`\n\u003e\n`\n\n|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| int(\\* | [open](/reference/hal/structhw__module__methods__t#a3a65000ad5fe4b8370a07438b952278f) )(const struct [hw_module_t](/reference/hal/structhw__module__t) \\*module, const char \\*id, struct [hw_device_t](/reference/hal/structhw__device__t) \\*\\*device) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nDefinition at line\n[156](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/hardware.h)\nof file\n[hardware.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/hardware.h)\n.\n\nField Documentation\n-------------------\n\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| int(\\* open)(const struct [hw_module_t](/reference/hal/structhw__module__t) \\*module, const char \\*id, struct [hw_device_t](/reference/hal/structhw__device__t) \\*\\*device) |\n\n\nOpen a specific device\n\n\nDefinition at line\n[158](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/hardware.h)\nof file\n[hardware.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/hardware.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [hardware.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/hardware.h)"]]