| 1234567891011121314151617181920 |
- /* Kernel hot-reload over UDP (see netkexec.c). */
- #ifndef NETKEXEC_H
- #define NETKEXEC_H
- /* 1 if a kernel-reload header datagram is waiting (auto-detected from the WM
- * loop). Returns 0 while a kexec is already running or a net command owns
- * the receiver. While idle it also answers ARP/ICMP for our IP, so the board
- * stays reachable without running a command. */
- int netkexec_pending(void);
- /* Feed one frame received by another poller (the WebDAV server). Returns 1
- * when it was a KXN2/KXNP/KXI2 header; netkexec_pending() then reports it
- * without polling the NIC again. */
- int netkexec_capture_frame(const unsigned char *frame, unsigned int len);
- /* Process entry: receive the pending image into the kexec staging buffer,
- * verify it and jump. Never returns on success. */
- void program_netkexec_main(void);
- #endif
|