FreeBSD virtual memory subsystem code
uma_dbg.c File Reference
#include <sys/cdefs.h>
#include "opt_vm.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bitset.h>
#include <sys/kernel.h>
#include <sys/types.h>
#include <sys/queue.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/malloc.h>
#include <vm/vm.h>
#include <vm/vm_object.h>
#include <vm/vm_page.h>
#include <vm/uma.h>
#include <vm/uma_int.h>
#include <vm/uma_dbg.h>
#include <vm/memguard.h>
Include dependency graph for uma_dbg.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
int trash_ctor (void *mem, int size, void *arg, int flags)
 
void trash_dtor (void *mem, int size, void *arg)
 
int trash_init (void *mem, int size, int flags)
 
void trash_fini (void *mem, int size)
 
int mtrash_ctor (void *mem, int size, void *arg, int flags)
 
void mtrash_dtor (void *mem, int size, void *arg)
 
int mtrash_init (void *mem, int size, int flags)
 
void mtrash_fini (void *mem, int size)
 

Variables

static const uint32_t uma_junk = 0xdeadc0de
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ mtrash_ctor()

int mtrash_ctor ( void *  mem,
int  size,
void *  arg,
int  flags 
)

Definition at line 142 of file uma_dbg.c.

References is_memguard_addr(), and uma_junk.

Referenced by mtrash_fini().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mtrash_dtor()

void mtrash_dtor ( void *  mem,
int  size,
void *  arg 
)

Definition at line 175 of file uma_dbg.c.

References is_memguard_addr(), and uma_junk.

Referenced by mtrash_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mtrash_fini()

void mtrash_fini ( void *  mem,
int  size 
)

Definition at line 224 of file uma_dbg.c.

References mtrash_ctor().

Here is the call graph for this function:

◆ mtrash_init()

int mtrash_init ( void *  mem,
int  size,
int  flags 
)

Definition at line 199 of file uma_dbg.c.

References is_memguard_addr(), and mtrash_dtor().

Here is the call graph for this function:

◆ trash_ctor()

int trash_ctor ( void *  mem,
int  size,
void *  arg,
int  flags 
)

Definition at line 67 of file uma_dbg.c.

References is_memguard_addr(), and uma_junk.

Referenced by item_ctor(), and trash_fini().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ trash_dtor()

void trash_dtor ( void *  mem,
int  size,
void *  arg 
)

Definition at line 100 of file uma_dbg.c.

References is_memguard_addr(), and uma_junk.

Referenced by item_dtor(), and trash_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ trash_fini()

void trash_fini ( void *  mem,
int  size 
)

Definition at line 136 of file uma_dbg.c.

References trash_ctor().

Referenced by keg_free_slab(), uma_zcreate(), and zone_ctor().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ trash_init()

int trash_init ( void *  mem,
int  size,
int  flags 
)

Definition at line 123 of file uma_dbg.c.

References trash_dtor().

Referenced by uma_zcreate(), and zone_ctor().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ uma_junk

const uint32_t uma_junk = 0xdeadc0de
static

Definition at line 58 of file uma_dbg.c.

Referenced by mtrash_ctor(), mtrash_dtor(), trash_ctor(), and trash_dtor().