Apple's open-source XNU kernel on Android phones: its own loader and drivers, Metal on the Adreno. Runs from RAM; a reboot gives the phone back to Android.
C
/*
* Mount the APFS volume on /dev/rvblk0 and walk it, to compare with what the host reader
* sees in the same image. Only with boot-arg apfs_check.
* See drivers/storage/hakios.apfs_check.c.
*/
#ifndef _SYS_HAKIOS_APFS_CHECK_H_
#define _SYS_HAKIOS_APFS_CHECK_H_
void hakios_apfs_check_init(void);
#endif /* _SYS_HAKIOS_APFS_CHECK_H_ */