1*6db3e3d7Sjsg.\" $OpenBSD: kvm_mkdb.8,v 1.12 2022/07/30 07:19:31 jsg Exp $ 2df930be7Sderaadt.\" Copyright (c) 1989, 1991, 1993 3df930be7Sderaadt.\" The Regents of the University of California. All rights reserved. 4df930be7Sderaadt.\" 5df930be7Sderaadt.\" Redistribution and use in source and binary forms, with or without 6df930be7Sderaadt.\" modification, are permitted provided that the following conditions 7df930be7Sderaadt.\" are met: 8df930be7Sderaadt.\" 1. Redistributions of source code must retain the above copyright 9df930be7Sderaadt.\" notice, this list of conditions and the following disclaimer. 10df930be7Sderaadt.\" 2. Redistributions in binary form must reproduce the above copyright 11df930be7Sderaadt.\" notice, this list of conditions and the following disclaimer in the 12df930be7Sderaadt.\" documentation and/or other materials provided with the distribution. 1329295d1cSmillert.\" 3. Neither the name of the University nor the names of its contributors 14df930be7Sderaadt.\" may be used to endorse or promote products derived from this software 15df930be7Sderaadt.\" without specific prior written permission. 16df930be7Sderaadt.\" 17df930be7Sderaadt.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 18df930be7Sderaadt.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19df930be7Sderaadt.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20df930be7Sderaadt.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 21df930be7Sderaadt.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22df930be7Sderaadt.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23df930be7Sderaadt.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24df930be7Sderaadt.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25df930be7Sderaadt.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26df930be7Sderaadt.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27df930be7Sderaadt.\" SUCH DAMAGE. 28df930be7Sderaadt.\" 29df930be7Sderaadt.\" from: @(#)kvm_mkdb.8 8.1 (Berkeley) 6/9/93 30df930be7Sderaadt.\" 31*6db3e3d7Sjsg.Dd $Mdocdate: July 30 2022 $ 32df930be7Sderaadt.Dt KVM_MKDB 8 33df930be7Sderaadt.Os 34df930be7Sderaadt.Sh NAME 35df930be7Sderaadt.Nm kvm_mkdb 36df930be7Sderaadt.Nd create kernel database 37df930be7Sderaadt.Sh SYNOPSIS 38df930be7Sderaadt.Nm kvm_mkdb 399da998eeSespie.Op Fl v 40fe75eb04Sdjm.Op Fl o Ar directory 419d0b46bcSjmc.Op Ar file 42df930be7Sderaadt.Sh DESCRIPTION 436931a8aaSaaron.Nm kvm_mkdb 44df930be7Sderaadtcreates a database in 45df930be7Sderaadt.Pa /var/db 46df930be7Sderaadtcontaining information about the specified file. 47df930be7SderaadtIf no file is specified, 48460cff61Sccappuc.Pa /bsd 49df930be7Sderaadtis used by default. 506931a8aaSaaronThe file is named 516931a8aaSaaron.Pa kvm_filename.db , 526931a8aaSaaronwhere 536931a8aaSaaron.Ar filename 546931a8aaSaaronis the name of the file read. 55df930be7SderaadtVarious library routines consult this database. 56df930be7SderaadtThe only information currently stored is the kernel namelist, which is 57df930be7Sderaadtused by the 58df930be7Sderaadt.Xr kvm_nlist 3 59cdbdb68aSaaronfunction. 60cdbdb68aSaaronHowever, in the future the database may contain other static 61df930be7Sderaadtinformation about the current system. 629da998eeSespie.Pp 63fe75eb04SdjmThe options are as follows: 64fe75eb04Sdjm.Bl -tag -width "-o directory" 65fe75eb04Sdjm.It Fl o Ar directory 66fe75eb04SdjmAllows the specification of a 67fe75eb04Sdjm.Ar directory 68fe75eb04Sdjmother than 69fe75eb04Sdjm.Pa /var/db 70fe75eb04Sdjmfor the database to be created in. 71fe75eb04Sdjm.It Fl v 72fe75eb04SdjmYields slightly more verbose operation. 73fe75eb04Sdjm.El 74df930be7Sderaadt.Sh FILES 75460cff61Sccappuc.Bl -tag -width /var/db/kvm_bsd.db -compact 76460cff61Sccappuc.It Pa /bsd 77460cff61Sccappuc.It Pa /var/db/kvm_bsd.db 78df930be7Sderaadt.El 79df930be7Sderaadt.Sh SEE ALSO 80df930be7Sderaadt.Xr kvm_nlist 3 81df930be7Sderaadt.Sh HISTORY 82df930be7SderaadtThe 83df930be7Sderaadt.Nm kvm_mkdb 84a873166dSmickeyutility first appeared in 85*6db3e3d7Sjsg.Bx 4.3 Reno . 86