MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sig_handler

Function sig_handler

dpdk/examples/vm_power_manager/guest_cli/main.c:21–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#include "parse.h"
20
21static void
22sig_handler(int signo)
23{
24 printf("Received signal %d, exiting...\n", signo);
25 unsigned lcore_id;
26
27 RTE_LCORE_FOREACH(lcore_id) {
28 rte_power_exit(lcore_id);
29 }
30
31}
32
33#define MAX_HOURS 24
34

Callers

nothing calls this directly

Calls 2

rte_power_exitFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected