mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-27 16:39:08 +00:00
- Create a ``zero fill'' constructor for uma_zcreate's ctor argument.
Inspired by: jake@
This commit is contained in:
parent
3b9a798ffc
commit
e062d89cdc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95117
@ -56,6 +56,7 @@
|
||||
#include <netatm/atm_stack.h>
|
||||
#include <netatm/atm_pcb.h>
|
||||
#include <netatm/atm_var.h>
|
||||
#include <vm/uma.h>
|
||||
|
||||
#ifndef lint
|
||||
__RCSID("@(#) $FreeBSD$");
|
||||
@ -488,6 +489,15 @@ atm_release_pool(sip)
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Zero fill constructor for our uma_zone's.
|
||||
*/
|
||||
void
|
||||
atm_uma_ctor(void *mem, int size)
|
||||
{
|
||||
|
||||
bzero(mem, size);
|
||||
}
|
||||
|
||||
/*
|
||||
* Handle timer tick expiration
|
||||
|
@ -178,6 +178,7 @@ void atm_initialize(void);
|
||||
void * atm_allocate(struct sp_info *);
|
||||
void atm_free(void *);
|
||||
void atm_release_pool(struct sp_info *);
|
||||
void atm_uma_ctor(void *, int);
|
||||
void atm_timeout(struct atm_time *, int,
|
||||
void (*)(struct atm_time *) );
|
||||
int atm_untimeout(struct atm_time *);
|
||||
|
Loading…
Reference in New Issue
Block a user