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

Function malloc2vm_flags

freebsd/vm/vm_page.h:555–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553
554#ifdef M_NOWAIT
555static inline int
556malloc2vm_flags(int malloc_flags)
557{
558 int pflags;
559
560 KASSERT((malloc_flags & M_USE_RESERVE) == 0 ||
561 (malloc_flags & M_NOWAIT) != 0,
562 ("M_USE_RESERVE requires M_NOWAIT"));
563 pflags = (malloc_flags & M_USE_RESERVE) != 0 ? VM_ALLOC_INTERRUPT :
564 VM_ALLOC_SYSTEM;
565 if ((malloc_flags & M_ZERO) != 0)
566 pflags |= VM_ALLOC_ZERO;
567 if ((malloc_flags & M_NODUMP) != 0)
568 pflags |= VM_ALLOC_NODUMP;
569 if ((malloc_flags & M_NOWAIT))
570 pflags |= VM_ALLOC_NOWAIT;
571 if ((malloc_flags & M_WAITOK))
572 pflags |= VM_ALLOC_WAITOK;
573 return (pflags);
574}
575#endif
576
577/*

Callers 9

uma_small_allocFunction · 0.85
uma_small_allocFunction · 0.85
uma_small_allocFunction · 0.85
m_uiotombuf_nomapFunction · 0.85
kmem_alloc_attr_domainFunction · 0.85
kmem_alloc_contig_domainFunction · 0.85
kmem_back_domainFunction · 0.85
startup_allocFunction · 0.85
pcpu_page_allocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected