Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
DEVCLASS(9)		   Kernel Developer's Manual		   DEVCLASS(9)

NAME
       devclass	-- object representing a class of devices

SYNOPSIS
       typedef struct devclass *devclass_t;

DESCRIPTION
       The 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 devclass has a name	and there cannot be two	 devclasses  with  the
       same  name.  This ensures that unique unit numbers are allocated	to de-
       vice instances.	All instances with the same name are treated as	 being
       the same.

       When no specific	unit number is needed, DEVICE_UNIT_ANY is used.

SEE ALSO
       devclass_add_driver(9),	 devclass_delete_driver(9),  devclass_find(9),
       devclass_find_driver(9),			       devclass_get_device(9),
       devclass_get_devices(9),	devclass_get_maxunit(9), devclass_get_name(9),
       devclass_get_softc(9), device(9), driver(9)

AUTHORS
       This manual page	was written by Doug Rabson.

FreeBSD	15.0			 June 16, 1998			   DEVCLASS(9)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=devclass&sektion=9&manpath=FreeBSD+15.0-RELEASE+and+Ports.quarterly>

home | help