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

Function malloc_elem_can_hold

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

* use elem_start_pt to determine if we get meet the size and * alignment request from the current element */

Source from the content-addressed store, hash-verified

277 * alignment request from the current element
278 */
279int
280malloc_elem_can_hold(struct malloc_elem *elem, size_t size, unsigned align,
281 size_t bound, bool contig)
282{
283 return elem_start_pt(elem, size, align, bound, contig) != NULL;
284}
285
286/*
287 * split an existing element into two smaller elements at the given

Callers 1

find_suitable_elementFunction · 0.85

Calls 1

elem_start_ptFunction · 0.85

Tested by

no test coverage detected