Home | History | Annotate | Download | only in common

Lines Matching refs:slot

34   using Slot = unsigned int;
36 static const Slot kInvalidSlot = UINT_MAX;
42 // images running from other media can have only one slot, like some USB
43 // image. Systems with only one slot won't be able to update.
46 // Return the slot where we are running the system from. On success, the
49 virtual Slot GetCurrentSlot() const = 0;
51 // Determines the block device for the given partition name and slot number.
52 // The |slot| number must be between 0 and GetNumSlots() - 1 and the
54 // every slot. On success, returns true and stores the block device in
57 Slot slot,
60 // Returns whether the passed |slot| is marked as bootable. Returns false if
61 // the slot is invalid.
62 virtual bool IsSlotBootable(Slot slot) const = 0;
64 // Mark the specified slot unbootable. No other slot flags are modified.
66 virtual bool MarkSlotUnbootable(Slot slot) = 0;
68 // Set the passed |slot| as the preferred boot slot. Returns whether it
69 // succeeded setting the active slot. If succeeded, on next boot the
70 // bootloader will attempt to load the |slot| marked as active. Note that this
72 virtual bool SetActiveBootSlot(Slot slot) = 0;
74 // Mark the current slot as successfully booted asynchronously. No other slot
80 // Return a human-readable slot name used for logging.
81 static std::string SlotName(Slot slot) {
82 if (slot == kInvalidSlot)
84 if (slot < 26)
85 return std::string(1, 'A' + slot);