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

Function dlb2_bitmap_zero

dpdk/drivers/event/dlb2/pf/base/dlb2_osdep_bitmap.h:134–142  ·  view source on GitHub ↗

* dlb2_bitmap_fill() - fill a bitmap with all 0s * @bitmap: pointer to dlb2_bitmap structure. * * This function sets all bitmap values to 0. * * Return: * Returns 0 upon success, < 0 otherwise. * * Errors: * EINVAL - bitmap is NULL or is uninitialized. */

Source from the content-addressed store, hash-verified

132 * EINVAL - bitmap is NULL or is uninitialized.
133 */
134static inline int dlb2_bitmap_zero(struct dlb2_bitmap *bitmap)
135{
136 if (bitmap == NULL || bitmap->map == NULL)
137 return -EINVAL;
138
139 rte_bitmap_reset(bitmap->map);
140
141 return 0;
142}
143
144/**
145 * dlb2_bitmap_set() - set a bitmap entry

Callers 1

dlb2_resource_initFunction · 0.85

Calls 1

rte_bitmap_resetFunction · 0.85

Tested by

no test coverage detected