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

Function next_elem_is_adjacent

dpdk/lib/eal/common/malloc_elem.c:338–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338static int
339next_elem_is_adjacent(struct malloc_elem *elem)
340{
341 const struct internal_config *internal_conf =
342 eal_get_internal_configuration();
343
344 return elem->next == RTE_PTR_ADD(elem, elem->size) &&
345 elem->next->msl == elem->msl &&
346 (!internal_conf->match_allocations ||
347 elem->orig_elem == elem->next->orig_elem);
348}
349
350static int
351prev_elem_is_adjacent(struct malloc_elem *elem)

Callers 3

malloc_elem_hide_regionFunction · 0.85
malloc_elem_resizeFunction · 0.85

Calls 1

Tested by

no test coverage detected