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

Function nvlist_create

freebsd/contrib/libnv/nvlist.c:128–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126} __packed;
127
128nvlist_t *
129nvlist_create(int flags)
130{
131 nvlist_t *nvl;
132
133 PJDLOG_ASSERT((flags & ~(NV_FLAG_PUBLIC_MASK)) == 0);
134
135 nvl = nv_malloc(sizeof(*nvl));
136 if (nvl == NULL)
137 return (NULL);
138 nvl->nvl_error = 0;
139 nvl->nvl_flags = flags;
140 nvl->nvl_parent = NULL;
141 nvl->nvl_array_next = NULL;
142 TAILQ_INIT(&nvl->nvl_head);
143 nvl->nvl_magic = NVLIST_MAGIC;
144
145 return (nvl);
146}
147
148void
149nvlist_destroy(nvlist_t *nvl)

Callers 4

nvlist_cloneFunction · 0.85
nvlist_xunpackFunction · 0.85
nvpair_unpack_nvlistFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected