DEVCLASS_GET_DRIVERS(9)
π DEVCLASS_GET_DRIVERS π
okay bestie, welcome to the Kernel Developer's Manual, section 9 β this is DEVCLASS_GET_DRIVERS(9) and it's literally all about pulling the driver list out of a devclass β¨
πΈ NAME πΈ
devclass_get_drivers β get a list of drivers in a devclass π«Ά
β¨ SYNOPSIS β¨
#include <sys/param.h>
#include <sys/bus.h>
int
devclass_get_drivers(devclass_t dc, driver_t ***listp, int *countp);
π¦ DESCRIPTION π¦
Okay so here's the vibe: devclass_get_drivers() retrieves a list of pointers to all driver instances currently in the devclass π
. It returns the list in *listp and the number of drivers in the list in *countp β iconic, right? π
The memory allocated for the list should be freed using free(*listp, M_TEMP), even if *countp is 0 π. Yes, bestie, even when the count is zero β don't leave that allocation hanging, fr fr π.
β RETURN VALUES β
Zero is returned on success π; otherwise an appropriate error is returned π.
π SEE ALSO π
π AUTHORS π
This manual page was written by Nate Lawson π.
xoxo, Debian π May 19, 2005 π DEVCLASS_GET_DRIVERS(9) π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2005 Nate Lawson
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms