mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +00:00
Better descriptions of the cdev malloc class and mutex.
This commit is contained in:
parent
39280ed384
commit
9ef295b7e0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131996
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue