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

Function trash_init

freebsd/vm/uma_dbg.c:122–127  ·  view source on GitHub ↗

* Fills an item with predictable garbage * * Complies with standard init arg/return * */

Source from the content-addressed store, hash-verified

120 *
121 */
122int
123trash_init(void *mem, int size, int flags)
124{
125 trash_dtor(mem, size, NULL);
126 return (0);
127}
128
129/*
130 * Checks an item to make sure it hasn't been overwritten since it was freed.

Callers 2

dn_buf_importFunction · 0.85
mb_zinit_packFunction · 0.85

Calls 1

trash_dtorFunction · 0.85

Tested by

no test coverage detected