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

Function vnet_data_copy

freebsd/net/vnet.c:460–470  ·  view source on GitHub ↗

* When a new virtualized global variable has been allocated, propagate its * initial value to each already-allocated virtual network stack instance. */

Source from the content-addressed store, hash-verified

458 * initial value to each already-allocated virtual network stack instance.
459 */
460void
461vnet_data_copy(void *start, int size)
462{
463 struct vnet *vnet;
464
465 VNET_LIST_RLOCK();
466 LIST_FOREACH(vnet, &vnet_head, vnet_le)
467 memcpy((void *)((uintptr_t)vnet->vnet_data_base +
468 (uintptr_t)start), start, size);
469 VNET_LIST_RUNLOCK();
470}
471
472/*
473 * Support for special SYSINIT handlers registered via VNET_SYSINIT()

Callers 3

link_elf_link_preloadFunction · 0.85
link_elf_load_fileFunction · 0.85
parse_vnetFunction · 0.85

Calls 1

memcpyFunction · 0.50

Tested by

no test coverage detected