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

Function mp_handle

dpdk/lib/eal/common/eal_common_proc.c:400–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400static uint32_t
401mp_handle(void *arg __rte_unused)
402{
403 struct mp_msg_internal msg;
404 struct sockaddr_un sa;
405 int fd;
406
407 while ((fd = rte_atomic_load_explicit(&mp_fd, rte_memory_order_relaxed)) >= 0) {
408 int ret;
409
410 ret = read_msg(fd, &msg, &sa);
411 if (ret <= 0)
412 break;
413
414 process_msg(&msg, &sa);
415 }
416
417 return 0;
418}
419
420static int
421timespec_cmp(const struct timespec *a, const struct timespec *b)

Callers

nothing calls this directly

Calls 2

read_msgFunction · 0.70
process_msgFunction · 0.70

Tested by

no test coverage detected