DEVCLASS(9)
π DEVCLASS(9) π
Kernel Developer's Manual energy, bestie β welcome to devclass, the object that's literally the moment for a whole class of devices. π
β¨ NAME β¨
devclass β object representing a class of devices π¦
πΈ SYNOPSIS πΈ
typedef struct devclass *devclass_t;
okay so that's the whole thing, it's giving very demure, very minimal π
π DESCRIPTION π
So the devclass object is out here with two main functions in the system, and honestly? both of them are main character energy. π
- The first one is to manage the allocation of unit numbers for device instances. somebaddy has to hand out the numbers, and it's her. ποΈ
- The second one is to hold the list of device drivers for a particular bus type. she's holding the roster, no cap. π
Every devclass has a name, and here's the tea: there cannot be two devclasses with the same name. not two, not ever. π« This is what ensures that unique unit numbers get allocated to device instances. it's a whole system and it works. β¨
β οΈ Beware, bestie β this means devclass must be the same for different bus attachments of the same device driver. like, same driver, different bus? still the same devclass. don't try to be cute about it. π
π₯ 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)π
like, go read those next, they all ate. π«Ά
π AUTHORS π
This manual page was written by Doug Rabson. king behaviour, honestly. πβ¨
and that's the whole page, bestie!! this one came out of the Debian side of the world, dated June 16, 1998, and it's filed under DEVCLASS(9) β ily, go write some drivers π
ππ
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 1998 Doug Rabson
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms