Home
last modified time | relevance | path

Searched refs:BrilloBootInfo (Results 1 – 3 of 3) sorted by relevance

/system/extras/boot_control_copy/
Dbootinfo.h28 typedef struct BrilloBootInfo { struct
46 } BrilloBootInfo; argument
49 bool boot_info_load(BrilloBootInfo* out_info);
50 bool boot_info_save(BrilloBootInfo* info);
53 bool boot_info_validate(BrilloBootInfo* info);
54 void boot_info_reset(BrilloBootInfo* info);
62 _Static_assert(sizeof(BrilloBootInfo) == 32, "BrilloBootInfo has wrong size");
Dbootinfo.cpp120 bool boot_info_load(BrilloBootInfo* out_info) { in boot_info_load()
123 memset(out_info, '\0', sizeof(BrilloBootInfo)); in boot_info_load()
133 num_read = read(fd, (void*)out_info, sizeof(BrilloBootInfo)); in boot_info_load()
136 if (num_read != sizeof(BrilloBootInfo)) return false; in boot_info_load()
140 bool boot_info_save(BrilloBootInfo* info) { in boot_info_save()
151 num_written = write(fd, (void*)info, sizeof(BrilloBootInfo)); in boot_info_save()
154 if (num_written != sizeof(BrilloBootInfo)) return false; in boot_info_save()
158 bool boot_info_validate(BrilloBootInfo* info) { in boot_info_validate()
164 void boot_info_reset(BrilloBootInfo* info) { in boot_info_reset()
165 memset(info, '\0', sizeof(BrilloBootInfo)); in boot_info_reset()
Dboot_control_copy.cpp126 BrilloBootInfo info; in module_setActiveBootSlot()
195 BrilloBootInfo info; in module_setSlotAsUnbootable()
220 BrilloBootInfo info; in module_isSlotBootable()