Function boot2dump::save_to_file_and_reboot[][src]

pub unsafe fn save_to_file_and_reboot(filename: &str, data: &[u8]) -> !
Expand description

Saves data into filename on the disk and then reboots the computer.

Currently, it only supports saving to a file in the root directory. Thus, filename should be a filename without slashes (/), for example, kerla.dump.


This function will boot another operating system (boot2dump) and it may cause a problem.