1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

/dev/null and /dev/zero does not need Giant

This commit is contained in:
Poul-Henning Kamp 2003-06-24 19:50:48 +00:00
parent a8ab48702b
commit 85cefd1dc0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116794

View File

@ -58,6 +58,7 @@ static struct cdevsw null_cdevsw = {
.d_ioctl = null_ioctl,
.d_name = "null",
.d_maj = CDEV_MAJOR,
.d_flags = D_NOGIANT,
};
static struct cdevsw zero_cdevsw = {
@ -67,7 +68,7 @@ static struct cdevsw zero_cdevsw = {
.d_write = null_write,
.d_name = "zero",
.d_maj = CDEV_MAJOR,
.d_flags = D_MMAP_ANON,
.d_flags = D_MMAP_ANON | D_NOGIANT,
};
static void *zbuf;