Referencia de la estructura boot_control_module
#include <
boot_control.h
>
Campos de datos |
|
| struct hw_module_t | común |
| void(* | init )(struct boot_control_module *module) |
| sin firmar(* | getNumberSlots )(struct boot_control_module *module) |
| sin firmar(* | getCurrentSlot )(struct boot_control_module *module) |
| int(* | markBootSuccessful )(struct boot_control_module *module) |
| int(* | setActiveBootSlot )(struct boot_control_module *module, unsigned slot) |
| int(* | setSlotAsUnbootable )(struct boot_control_module *module, unsigned slot) |
| int(* | isSlotBootable )(struct boot_control_module *module, unsigned slot) |
| const char *(* | getSuffix )(struct boot_control_module *module, unsigned slot) |
| int(* | isSlotMarkedSuccessful )(struct boot_control_module *module, unsigned slot) |
| void * | reservado [31] |
Descripción detallada
Cada módulo de hardware debe tener una estructura de datos llamada HAL_MODULE_INFO_SYM, y los campos de esta estructura de datos deben comenzar con hw_module_t , seguido de información específica del módulo.
Definición en la línea 50 del archivo boot_control.h .
Documentación de campos
| struct hw_module_t común |
Definición en la línea 51 del archivo boot_control.h .
| unsigned(* getCurrentSlot)(struct boot_control_module *module) |
Definición en la línea 76 del archivo boot_control.h .
| unsigned(* getNumberSlots)(struct boot_control_module *module) |
Definición en la línea 64 del archivo boot_control.h .
| const char*(* getSuffix)(struct boot_control_module *module, unsigned slot) |
Definición en la línea 118 del archivo boot_control.h .
| void(* init)(struct boot_control_module *module) |
Definición en la línea 57 del archivo boot_control.h .
| int(* isSlotBootable)(struct boot_control_module *module, unsigned slot) |
Definición en la línea 110 del archivo boot_control.h .
| int(* isSlotMarkedSuccessful)(struct boot_control_module *module, unsigned slot) |
Definición en la línea 126 del archivo boot_control.h .
| int(* markBootSuccessful)(struct boot_control_module *module) |
Definición en la línea 84 del archivo boot_control.h .
| void* reserved[31] |
Definición en la línea 128 del archivo boot_control.h .
| int(* setActiveBootSlot)(struct boot_control_module *module, unsigned slot) |
Definición en la línea 93 del archivo boot_control.h .
| int(* setSlotAsUnbootable)(struct boot_control_module *module, unsigned slot) |
Definición en la línea 101 del archivo boot_control.h .
La documentación de esta struct se generó a partir del siguiente archivo:
- hardware/libhardware/include/hardware/ boot_control.h