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.cpp115 bool boot_info_load(BrilloBootInfo *out_info) in boot_info_load()
119 memset(out_info, '\0', sizeof(BrilloBootInfo)); in boot_info_load()
130 num_read = read(fd, (void*) out_info, sizeof(BrilloBootInfo)); in boot_info_load()
133 if (num_read != sizeof(BrilloBootInfo)) in boot_info_load()
138 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)) in boot_info_save()
159 bool boot_info_validate(BrilloBootInfo* info) in boot_info_validate()
170 void boot_info_reset(BrilloBootInfo* info) in boot_info_reset()
172 memset(info, '\0', sizeof(BrilloBootInfo)); in boot_info_reset()
Dboot_control_copy.cpp137 BrilloBootInfo info; in module_setActiveBootSlot()
210 BrilloBootInfo info; in module_setSlotAsUnbootable()
237 BrilloBootInfo info; in module_isSlotBootable()