Better descriptions of the cdev malloc class and mutex.

This commit is contained in:
Poul-Henning Kamp 2004-07-11 19:26:43 +00:00
parent 39280ed384
commit 9ef295b7e0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131996

View File

@ -44,7 +44,7 @@ __FBSDID("$FreeBSD$");
#include <sys/tty.h>
#include <machine/stdarg.h>
static MALLOC_DEFINE(M_DEVT, "struct cdev *", "struct cdev *storage");
static MALLOC_DEFINE(M_DEVT, "cdev", "cdev storage");
/* Built at compile time from sys/conf/majors */
extern unsigned char reserved_majors[256];
@ -77,7 +77,7 @@ static void
devlock(void)
{
if (!mtx_initialized(&devmtx))
mtx_init(&devmtx, "struct cdev *", NULL, MTX_DEF);
mtx_init(&devmtx, "cdev", NULL, MTX_DEF);
mtx_lock(&devmtx);
}