הפניה ל-Struct של boot_control_module
#include <
boot_control.h
>
שדות נתונים |
|
| struct hw_module_t | נפוץ |
| void(* | init )(struct boot_control_module *module) |
| ללא חתימה(* | getNumberSlots )(struct boot_control_module *module) |
| ללא חתימה(* | 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 * | שמורות [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