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

Function nvlist_nv_alloc

freebsd/contrib/openzfs/module/nvpair/nvpair.c:564–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564static nv_alloc_t *
565nvlist_nv_alloc(int kmflag)
566{
567#if defined(_KERNEL)
568 switch (kmflag) {
569 case KM_SLEEP:
570 return (nv_alloc_sleep);
571 case KM_NOSLEEP:
572 return (nv_alloc_nosleep);
573 default:
574 return (nv_alloc_pushpage);
575 }
576#else
577 return (nv_alloc_nosleep);
578#endif /* _KERNEL */
579}
580
581/*
582 * nvlist_alloc - Allocate nvlist.

Callers 4

nvlist_allocFunction · 0.85
nvlist_dupFunction · 0.85
nvlist_packFunction · 0.85
nvlist_unpackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected