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

Function page_free

freebsd/vm/uma_core.c:1912–1925  ·  view source on GitHub ↗

* Frees a number of pages to the system * * Arguments: * mem A pointer to the memory to be freed * size The size of the memory being freed * flags The original p->us_flags field * * Returns: * Nothing */

Source from the content-addressed store, hash-verified

1910 * Nothing
1911 */
1912static void
1913page_free(void *mem, vm_size_t size, uint8_t flags)
1914{
1915
1916 if ((flags & UMA_SLAB_BOOT) != 0) {
1917 startup_free(mem, size);
1918 return;
1919 }
1920
1921 KASSERT((flags & UMA_SLAB_KERNEL) != 0,
1922 ("UMA: page_free used with invalid flags %x", flags));
1923
1924 kmem_free((vm_offset_t)mem, size);
1925}
1926
1927#ifndef FSTACK
1928/*

Callers 1

pcpu_page_freeFunction · 0.85

Calls 2

startup_freeFunction · 0.85
kmem_freeFunction · 0.70

Tested by

no test coverage detected