[][src]Function card10_sys::epic_exec

pub unsafe extern "C" fn epic_exec(name: *mut c_char) -> c_int

Stop execution of the current payload and immediately start another payload.

:param char* name: Name (path) of the new payload to start. This can either be:

  • A path to an .elf file (l0dable).
  • A path to a .py file (will be loaded using Pycardium).
  • A path to a directory (assumed to be a Python module, execution starts with __init__.py in this folder).

:return: :c:func:epic_exec will only return in case loading went wrong. The following error codes can be returned:

  • -ENOENT: File not found.
  • -ENOEXEC: File not a loadable format.