SIMPLE SOLUTIONS

DEVCLASS - reference manual online

Object representing a class of devices.

Chapter
June 16, 1998
DEVCLASS(9)                       BSD 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 allo‐ cation 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 dev‐ classes with the same name. This ensures that unique unit numbers are allocated to device instances. Beware that this means devclass must be the same for different bus attachments of the same device driver.
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.
BSD June 16, 1998 BSD
This manual Reference Other manuals
devclass(9freebsd) referred by bus_dma(9freebsd) | bus_dma_tag_create(9freebsd) | bus_dma_tag_destroy(9freebsd) | bus_dmamap_create(9freebsd) | bus_dmamap_destroy(9freebsd) | bus_dmamap_load(9freebsd) | bus_dmamap_load_mbuf(9freebsd) | bus_dmamap_load_mbuf_sg(9freebsd) | bus_dmamap_load_uio(9freebsd) | bus_dmamap_sync(9freebsd) | bus_dmamap_unload(9freebsd) | bus_dmamem_alloc(9freebsd) | bus_dmamem_free(9freebsd) | busdma(9freebsd) | devclass_find(9freebsd) | devclass_get_device(9freebsd) | devclass_get_devices(9freebsd) | devclass_get_drivers(9freebsd) | devclass_get_maxunit(9freebsd) | devclass_get_name(9freebsd)
refer to devclass_find(9freebsd) | devclass_get_device(9freebsd) | devclass_get_devices(9freebsd) | devclass_get_maxunit(9freebsd) | devclass_get_name(9freebsd) | devclass_get_softc(9freebsd) | device(9freebsd) | driver(9freebsd)