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

Function nvpair_insert

freebsd/contrib/libnv/bsd_nvpair.c:198–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void
199nvpair_insert(struct nvl_head *head, nvpair_t *nvp, nvlist_t *nvl)
200{
201
202 NVPAIR_ASSERT(nvp);
203 PJDLOG_ASSERT(nvp->nvp_list == NULL);
204 PJDLOG_ASSERT((nvlist_flags(nvl) & NV_FLAG_NO_UNIQUE) != 0 ||
205 !nvlist_exists(nvl, nvpair_name(nvp)));
206
207 TAILQ_INSERT_TAIL(head, nvp, nvp_next);
208 nvp->nvp_list = nvl;
209}
210
211static void
212nvpair_remove_nvlist(nvpair_t *nvp)

Callers 2

nvlist_add_nvpairFunction · 0.85
NVLIST_APPEND_ARRAYFunction · 0.85

Calls 3

nvlist_flagsFunction · 0.85
nvlist_existsFunction · 0.70
nvpair_nameFunction · 0.70

Tested by

no test coverage detected