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

Function busdma_bufalloc_alloc_uncacheable

freebsd/kern/subr_busdma_bufalloc.c:152–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152void *
153busdma_bufalloc_alloc_uncacheable(uma_zone_t zone, vm_size_t size, int domain,
154 uint8_t *pflag, int wait)
155{
156
157#ifdef VM_MEMATTR_UNCACHEABLE
158 /* Inform UMA that this allocator uses kernel_arena/object. */
159 *pflag = UMA_SLAB_KERNEL;
160
161 return ((void *)kmem_alloc_attr_domainset(DOMAINSET_FIXED(domain), size,
162 wait, 0, BUS_SPACE_MAXADDR, VM_MEMATTR_UNCACHEABLE));
163#else
164 panic("VM_MEMATTR_UNCACHEABLE unavailable");
165#endif /* VM_MEMATTR_UNCACHEABLE */
166}
167
168void
169busdma_bufalloc_free_uncacheable(void *item, vm_size_t size, uint8_t pflag)

Callers

nothing calls this directly

Calls 2

panicFunction · 0.70

Tested by

no test coverage detected