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

Function nvpair_get_bool_array

freebsd/contrib/libnv/bsd_nvpair.c:1861–1872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1859}
1860
1861const bool *
1862nvpair_get_bool_array(const nvpair_t *nvp, size_t *nitems)
1863{
1864
1865 NVPAIR_ASSERT(nvp);
1866 PJDLOG_ASSERT(nvp->nvp_type == NV_TYPE_BOOL_ARRAY);
1867
1868 if (nitems != NULL)
1869 *nitems = nvp->nvp_nitems;
1870
1871 return ((const bool *)(intptr_t)nvp->nvp_data);
1872}
1873
1874const uint64_t *
1875nvpair_get_number_array(const nvpair_t *nvp, size_t *nitems)

Callers 2

nvlist_dumpFunction · 0.85
nvpair_cloneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected