Delete MAKEDEV references and add small blurb that points to devfs(5)

and devd(8).

PR:		docs/50278
Submitted by:	Sergey A.Osokin <osa@FreeBSD.org.ru>
This commit is contained in:
Giorgos Keramidas 2003-03-25 14:35:27 +00:00
parent 55be6e6c7f
commit 12c63b8e4b

View File

@ -92,21 +92,13 @@ system.
New block and character device New block and character device
drivers may be loaded into the system with drivers may be loaded into the system with
.Nm . .Nm .
The major problem with loading Device nodes for the loaded drivers are automatically created when a
a device driver is that the driver's module is loaded and destroyed when it is unloaded by
device nodes must exist for the .Xr devfs 5 .
devices to be accessed. They are usually You can specify userland programs that will run when new devices
created by using become available as a result of loading modules, or existing devices
.Xr MAKEDEV 8 go away when modules are unloaded, by configuring
or .Xr devd 8 .
.Xr mknod 8
(if the device is not supported by the
.Xr MAKEDEV 8
script) or, by writing a
shell script to run
.Xr kldload 8
which should run the appropriate program to create the devices when the
driver has been successfully loaded.
.El .El
.Sh FILES .Sh FILES
.Bl -tag -width /usr/include/sys/module.h -compact .Bl -tag -width /usr/include/sys/module.h -compact
@ -127,6 +119,8 @@ example source code implementing a sample kld module
.Xr kldnext 2 , .Xr kldnext 2 ,
.Xr kldstat 2 , .Xr kldstat 2 ,
.Xr kldunload 2 , .Xr kldunload 2 ,
.Xr devfs 5 ,
.Xr devd 8 ,
.Xr kldload 8 , .Xr kldload 8 ,
.Xr kldstat 8 , .Xr kldstat 8 ,
.Xr kldunload 8 .Xr kldunload 8