xref: /original-bsd/usr.sbin/dev_mkdb/dev_mkdb.8 (revision c3e32dec)
1.\" Copyright (c) 1990, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" %sccs.include.redist.roff%
5.\"
6.\"	@(#)dev_mkdb.8	8.1 (Berkeley) 06/06/93
7.\"
8.Dd
9.Os
10.Dt DEV_MKDB 8
11.Sh NAME
12.Nm dev_mkdb
13.Nd create
14.Pa /dev
15database
16.Sh SYNOPSIS
17.Nm dev_mkdb
18.Sh DESCRIPTION
19The
20.Nm dev_mkdb
21command creates a
22.Xr db 3
23hash access method database in
24.Dq Pa /var/run/dev.db
25which contains the names of all of the character and block special
26files in the
27.Dq Pa /dev
28directory, using the file type and the
29.Fa st_rdev
30field as the key.
31.Pp
32Keys are a structure containing a mode_t followed by a dev_t,
33with any padding zero'd out.
34The former is the type of the file (st_mode & S_IFMT),
35the latter is the st_rdev field.
36.Sh FILES
37.Bl -tag -width /var/run/dev.db -compact
38.It Pa /dev
39Device directory.
40.It Pa /var/run/dev.db
41Database file.
42.El
43.Sh SEE ALSO
44.Xr ps 1 ,
45.Xr stat 2 ,
46.Xr db 3 ,
47.Xr devname 3 ,
48.Xr kvm_nlist 3 ,
49.Xr ttyname 3 ,
50.Xr kvm_mkdb 8
51.Sh HISTORY
52The
53.Nm dev_mkdb
54command appeared in
55.Bx 4.4 .
56