* 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. */
| 132 | * EINVAL - bitmap is NULL or is uninitialized. |
| 133 | */ |
| 134 | static 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 |
no test coverage detected