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

Function pctrie_addval

freebsd/kern/subr_pctrie.c:250–259  ·  view source on GitHub ↗

* Adds the val as a child of the provided node. */

Source from the content-addressed store, hash-verified

248 * Adds the val as a child of the provided node.
249 */
250static __inline void
251pctrie_addval(struct pctrie_node *node, uint64_t index, uint16_t clev,
252 uint64_t *val, enum pctrie_access access)
253{
254 int slot;
255
256 slot = pctrie_slot(index, clev);
257 pctrie_node_store(&node->pn_child[slot],
258 (void *)((uintptr_t)val | PCTRIE_ISLEAF), access);
259}
260
261/*
262 * Returns the slot where two keys differ.

Callers 1

pctrie_insertFunction · 0.85

Calls 2

pctrie_slotFunction · 0.85
pctrie_node_storeFunction · 0.85

Tested by

no test coverage detected