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

Function nvpair_unpack_null

freebsd/contrib/libnv/bsd_nvpair.c:701–714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701const unsigned char *
702nvpair_unpack_null(bool isbe __unused, nvpair_t *nvp, const unsigned char *ptr,
703 size_t *leftp __unused)
704{
705
706 PJDLOG_ASSERT(nvp->nvp_type == NV_TYPE_NULL);
707
708 if (nvp->nvp_datasize != 0) {
709 ERRNO_SET(EINVAL);
710 return (NULL);
711 }
712
713 return (ptr);
714}
715
716const unsigned char *
717nvpair_unpack_bool(bool isbe __unused, nvpair_t *nvp, const unsigned char *ptr,

Callers 1

nvlist_xunpackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected