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

Function pctrie_node_store

freebsd/kern/subr_pctrie.c:189–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189static __inline void
190pctrie_node_store(smr_pctnode_t *p, void *v, enum pctrie_access access)
191{
192 switch (access) {
193 case PCTRIE_UNSERIALIZED:
194 smr_unserialized_store(p, v, true);
195 break;
196 case PCTRIE_LOCKED:
197 smr_serialized_store(p, v, true);
198 break;
199 case PCTRIE_SMR:
200 panic("%s: Not supported in SMR section.", __func__);
201 break;
202 default:
203 __assert_unreachable();
204 break;
205 }
206}
207
208/*
209 * Get the root node for a tree.

Callers 6

pctrie_node_getFunction · 0.85
pctrie_root_storeFunction · 0.85
pctrie_addvalFunction · 0.85
pctrie_insertFunction · 0.85
pctrie_removeFunction · 0.85

Calls 1

panicFunction · 0.70

Tested by

no test coverage detected