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

Function bitmask_init

freebsd/net/route/nhop_utils.c:50–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48static void _bitmask_init_idx(void *index, uint32_t items);
49
50void
51bitmask_init(struct bitmask_head *bh, void *idx, uint32_t num_items)
52{
53
54 if (idx != NULL)
55 _bitmask_init_idx(idx, num_items);
56
57 memset(bh, 0, sizeof(struct bitmask_head));
58 bh->blocks = _ITEMS_TO_BLOCKS(num_items);
59 bh->idx = (u_long *)idx;
60}
61
62uint32_t
63bitmask_get_resize_items(const struct bitmask_head *bh)

Callers 3

nhgrp_ctl_alloc_defaultFunction · 0.85
nhgrp_ctl_initFunction · 0.85
nhops_init_ribFunction · 0.85

Calls 2

_bitmask_init_idxFunction · 0.85
memsetFunction · 0.85

Tested by

no test coverage detected