From f8801468131ec6025be40f869dfb4e21ccfbd520 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Mon, 2 Jun 2003 15:34:14 +0000 Subject: [PATCH] The devclass is an object type, mark it as such. This also unbreaks the devclass_find(9) manpage. --- share/man/man9/devclass.9 | 6 +++--- share/man/man9/devclass_find.9 | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/share/man/man9/devclass.9 b/share/man/man9/devclass.9 index 58f4bfbcf7c1..73e4f1a5f5ec 100644 --- a/share/man/man9/devclass.9 +++ b/share/man/man9/devclass.9 @@ -38,18 +38,18 @@ .Vt typedef struct devclass *devclass_t ; .Sh DESCRIPTION The -.Nm +.Vt devclass object has two main functions in the system. The first is to manage the allocation of unit numbers for device instances and the second is to hold the list of device drivers for a particular bus type. Each -.Nm +.Vt devclass has a name and there cannot be two devclasses with the same name. This ensures that unique unit numbers are allocated to device instances. .Pp Beware that this means -.Nm +.Vt devclass must be the same for different bus attachments of the same device driver. .Sh SEE ALSO .Xr devclass_add_driver 9 , diff --git a/share/man/man9/devclass_find.9 b/share/man/man9/devclass_find.9 index 93f186b42f5e..6c1ef44f0d12 100644 --- a/share/man/man9/devclass_find.9 +++ b/share/man/man9/devclass_find.9 @@ -41,11 +41,11 @@ .Fn devclass_find "const char *classname" .Sh DESCRIPTION Search for the -.Nm +.Vt devclass with the specified name. .Sh RETURN VALUES If the -.Nm +.Vt devclass exists, it is returned, otherwise .Dv NULL is returned.