Tài liệu tham khảo về cấu trúc boot_control_module
  
   #include <
   
    boot_control.h
   
   >
  
 
    Trường dữ liệu | 
  |
| struct hw_module_t | common | 
| void(* | init )(struct boot_control_module *module) | 
| chưa ký(* | getNumberSlots )(struct boot_control_module *module) | 
| chưa ký(* | 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, slot chưa ký) | 
| int(* | isSlotBootable )(struct boot_control_module *module, unsigned slot) | 
| const char *(* | getSuffix )(struct boot_control_module *module, khe chưa ký) | 
| int(* | isSlotMarkedSuccessful )(struct boot_control_module *module, khe chưa ký) | 
| void * | reserved [31] | 
Nội dung mô tả chi tiết
Mỗi mô-đun phần cứng phải có một cấu trúc dữ liệu có tên là HAL_MODULE_INFO_SYM và các trường của cấu trúc dữ liệu này phải bắt đầu bằng hw_module_t , theo sau là thông tin cụ thể về mô-đun.
Định nghĩa tại dòng 50 của tệp boot_control.h .
Tài liệu về trường
| cấu trúc hw_module_t phổ biến | 
Định nghĩa tại dòng 51 của tệp boot_control.h .
| unsigned(* getCurrentSlot)(struct boot_control_module *module) | 
Định nghĩa tại dòng 76 của tệp boot_control.h .
| unsigned(* getNumberSlots)(struct boot_control_module *module) | 
Định nghĩa tại dòng 64 của tệp boot_control.h .
| const char*(* getSuffix)(struct boot_control_module *module, unsigned slot) | 
Định nghĩa tại dòng 118 của tệp boot_control.h .
| void(* init)(struct boot_control_module *module) | 
Định nghĩa tại dòng 57 của tệp boot_control.h .
| int(* isSlotBootable)(struct boot_control_module *module, unsigned slot) | 
Định nghĩa tại dòng 110 của tệp boot_control.h .
| int(* isSlotMarkedSuccessful)(struct boot_control_module *module, unsigned slot) | 
Định nghĩa tại dòng 126 của tệp boot_control.h .
| int(* markBootSuccessful)(struct boot_control_module *module) | 
Định nghĩa tại dòng 84 của tệp boot_control.h .
| void* reserved[31] | 
Định nghĩa tại dòng 128 của tệp boot_control.h .
| int(* setActiveBootSlot)(struct boot_control_module *module, unsigned slot) | 
Định nghĩa tại dòng 93 của tệp boot_control.h .
| int(* setSlotAsUnbootable)(struct boot_control_module *module, unsigned slot) | 
Định nghĩa tại dòng 101 của tệp boot_control.h .
Tài liệu cho cấu trúc này được tạo từ tệp sau:
- hardware/libhardware/include/hardware/ boot_control.h