DEVCLASS(9)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1, nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is the devclass(9) page from the Kernel Developer’s Manual, and <pink>devclass</pink> is literally the object representing a class of devices. main character energy, fr fr ✨

πŸŽ€ SYNOPSIS πŸŽ€

typedef struct devclass *devclass_t;

that’s it. no extra flags, no chaos, just the typedef. slay. πŸ’…

🌸 DESCRIPTION 🌸

the <pink>devclass</pink> object has two main jobs in the system, and honestly it ate:

  • manage the allocation of unit numbers for device instances
  • hold the list of device drivers for a particular bus type

every <pink>devclass</pink> has a name, and no cap: there cannot be two devclasses with the same name. that’s the guarantee that unique unit numbers get allocated to device instances. all instances with the same name are treated as being the same. iykyk πŸ¦‹

when no specific unit number is needed, DEVICE_UNIT_ANY is used. simple as that. periodt πŸ’œ

πŸ¦‹ SEE ALSO πŸ¦‹

go off and read these besties:

πŸ‘‘ AUTHORS πŸ‘‘

this manual page was written by Doug Rabson. iconic behavior, honestly. 🫢


okay byeee: this one’s from Debian, dated June 16, 1998, and it lives as DEVCLASS(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from