ข้อมูลอ้างอิง Struct boot_control_module
#include <
boot_control.h
>
ฟิลด์ข้อมูล |
|
| struct hw_module_t | common |
| void(* | init )(struct boot_control_module *module) |
| unsigned(* | getNumberSlots )(struct boot_control_module *module) |
| unsigned(* | 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 * | reserved [31] |
คำอธิบายโดยละเอียด
โมดูลฮาร์ดแวร์ทุกโมดูลต้องมีโครงสร้างข้อมูลที่ชื่อ HAL_MODULE_INFO_SYM และช่องของโครงสร้างข้อมูลนี้ต้องขึ้นต้นด้วย hw_module_t ตามด้วยข้อมูลเฉพาะของโมดูล
คําจํากัดความที่บรรทัด 50 ของไฟล์ boot_control.h .
เอกสารประกอบในสนาม
| struct hw_module_t common |
คําจํากัดความที่บรรทัด 51 ของไฟล์ boot_control.h .
| unsigned(* getCurrentSlot)(struct boot_control_module *module) |
คําจํากัดความที่บรรทัด 76 ของไฟล์ boot_control.h .
| unsigned(* getNumberSlots)(struct boot_control_module *module) |
คําจํากัดความที่บรรทัด 64 ของไฟล์ boot_control.h .
| const char*(* getSuffix)(struct boot_control_module *module, unsigned slot) |
คําจํากัดความที่บรรทัด 118 ของไฟล์ boot_control.h .
| void(* init)(struct boot_control_module *module) |
คําจํากัดความที่บรรทัด 57 ของไฟล์ boot_control.h .
| int(* isSlotBootable)(struct boot_control_module *module, unsigned slot) |
คําจํากัดความที่บรรทัด 110 ของไฟล์ boot_control.h .
| int(* isSlotMarkedSuccessful)(struct boot_control_module *module, unsigned slot) |
คําจํากัดความที่บรรทัด 126 ของไฟล์ boot_control.h .
| int(* markBootSuccessful)(struct boot_control_module *module) |
คําจํากัดความที่บรรทัด 84 ของไฟล์ boot_control.h .
| void* reserved[31] |
คําจํากัดความที่บรรทัด 128 ของไฟล์ boot_control.h .
| int(* setActiveBootSlot)(struct boot_control_module *module, unsigned slot) |
คําจํากัดความที่บรรทัด 93 ของไฟล์ boot_control.h .
| int(* setSlotAsUnbootable)(struct boot_control_module *module, unsigned slot) |
คําจํากัดความที่บรรทัด 101 ของไฟล์ boot_control.h .
เอกสารประกอบสำหรับโครงสร้างนี้สร้างขึ้นจากไฟล์ต่อไปนี้
- hardware/libhardware/include/hardware/ boot_control.h