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

Function netisr_dispatch_policy_to_string

tools/netstat/netisr.c:83–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81#endif
82
83static void
84netisr_dispatch_policy_to_string(u_int policy, char *buf,
85 size_t buflen)
86{
87 const char *str;
88
89 switch (policy) {
90 case NETISR_DISPATCH_DEFAULT:
91 str = "default";
92 break;
93 case NETISR_DISPATCH_DEFERRED:
94 str = "deferred";
95 break;
96 case NETISR_DISPATCH_HYBRID:
97 str = "hybrid";
98 break;
99 case NETISR_DISPATCH_DIRECT:
100 str = "direct";
101 break;
102 default:
103 str = "unknown";
104 break;
105 }
106 snprintf(buf, buflen, "%s", str);
107}
108
109#ifndef FSTACK
110/*

Callers 2

netisr_load_kvm_configFunction · 0.85
netisr_print_protoFunction · 0.85

Calls 1

snprintfFunction · 0.85

Tested by

no test coverage detected