The devclass is an object type, mark it as such.

This also unbreaks the devclass_find(9) manpage.
This commit is contained in:
Ruslan Ermilov 2003-06-02 15:34:14 +00:00
parent d6071d2f5f
commit f880146813
2 changed files with 5 additions and 5 deletions

View File

@ -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 ,

View File

@ -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.