MCPcopy Create free account
hub / github.com/axboe/liburing / t_error

Function t_error

examples/send-zerocopy.c:106–118  ·  view source on GitHub ↗

* Implementation of error(3), prints an error message and exits. */

Source from the content-addressed store, hash-verified

104 * Implementation of error(3), prints an error message and exits.
105 */
106static void t_error(int status, int errnum, const char *format, ...)
107{
108 va_list args;
109 va_start(args, format);
110
111 vfprintf(stderr, format, args);
112 if (errnum)
113 fprintf(stderr, ": %s", strerror(errnum));
114
115 fprintf(stderr, "\n");
116 va_end(args);
117 exit(status);
118}
119
120static void set_cpu_affinity(void)
121{

Callers 13

set_cpu_affinityFunction · 0.70
set_iowq_affinityFunction · 0.70
do_setsockoptFunction · 0.70
setup_sockaddrFunction · 0.70
do_pollFunction · 0.70
do_flush_tcpFunction · 0.70
do_flush_datagramFunction · 0.70
do_setup_rxFunction · 0.70
do_rxFunction · 0.70
wait_cqe_fastFunction · 0.70
do_txFunction · 0.70
parse_optsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected