init.h 583 B

12345678910111213141516
  1. /* Ring-3 init bootstrap and supervision.
  2. *
  3. * The kernel starts /ramfs/bin/init as PID 1 after the ramfs/share mounts and
  4. * wm_server_init(), and before any WM exists. Init owns the WM and services;
  5. * the kernel only restarts init if it dies. `init_pid` is recorded inside
  6. * process_create_user_full() before the process is made runnable, so an AP
  7. * cannot run init and see an empty pid. */
  8. #ifndef INIT_H
  9. #define INIT_H
  10. unsigned int init_server_pid(void);
  11. void init_server_note_pid(unsigned int pid);
  12. int init_server_start(void);
  13. void init_server_supervise(void);
  14. #endif