netkexec.h 571 B

123456789101112131415
  1. /* Kernel hot-reload over UDP (see netkexec.c). */
  2. #ifndef NETKEXEC_H
  3. #define NETKEXEC_H
  4. /* 1 if a kernel-reload header datagram is waiting (auto-detected from the WM
  5. * loop). Returns 0 while a kexec is already running or a net command owns
  6. * the receiver. While idle it also answers ARP/ICMP for our IP, so the board
  7. * stays reachable without running a command. */
  8. int netkexec_pending(void);
  9. /* Process entry: receive the pending image into the kexec staging buffer,
  10. * verify it and jump. Never returns on success. */
  11. void program_netkexec_main(void);
  12. #endif