مرجع بنية boot_control_module
#include <
boot_control.h
>
حقول البيانات |
|
| struct hw_module_t | شائعة |
| void(* | init )(struct boot_control_module *module) |
| غير موقَّعة(* | 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 * | محجوز [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