xref: /freebsd/share/man/man9/devclass_get_drivers.9 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
1fada20b9SNate Lawson.\" -*- nroff -*-
2fada20b9SNate Lawson.\"
3fada20b9SNate Lawson.\" Copyright (c) 2005 Nate Lawson
4fada20b9SNate Lawson.\"
5fada20b9SNate Lawson.\" All rights reserved.
6fada20b9SNate Lawson.\"
7fada20b9SNate Lawson.\" This program is free software.
8fada20b9SNate Lawson.\"
9fada20b9SNate Lawson.\" Redistribution and use in source and binary forms, with or without
10fada20b9SNate Lawson.\" modification, are permitted provided that the following conditions
11fada20b9SNate Lawson.\" are met:
12fada20b9SNate Lawson.\" 1. Redistributions of source code must retain the above copyright
13fada20b9SNate Lawson.\"    notice, this list of conditions and the following disclaimer.
14fada20b9SNate Lawson.\" 2. Redistributions in binary form must reproduce the above copyright
15fada20b9SNate Lawson.\"    notice, this list of conditions and the following disclaimer in the
16fada20b9SNate Lawson.\"    documentation and/or other materials provided with the distribution.
17fada20b9SNate Lawson.\"
18fada20b9SNate Lawson.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
19fada20b9SNate Lawson.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20fada20b9SNate Lawson.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21fada20b9SNate Lawson.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
22fada20b9SNate Lawson.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23fada20b9SNate Lawson.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24fada20b9SNate Lawson.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25fada20b9SNate Lawson.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26fada20b9SNate Lawson.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27fada20b9SNate Lawson.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28fada20b9SNate Lawson.\"
2996ab794bSNate Lawson.Dd May 19, 2005
30fada20b9SNate Lawson.Dt DEVCLASS_GET_DRIVERS 9
31fada20b9SNate Lawson.Os
32fada20b9SNate Lawson.Sh NAME
33fada20b9SNate Lawson.Nm devclass_get_drivers
34a4be0b3cSRuslan Ermilov.Nd "get a list of drivers in a devclass"
35fada20b9SNate Lawson.Sh SYNOPSIS
36fada20b9SNate Lawson.In sys/param.h
37fada20b9SNate Lawson.In sys/bus.h
38fada20b9SNate Lawson.Ft int
39fada20b9SNate Lawson.Fn devclass_get_drivers "devclass_t dc" "driver_t ***listp" "int *countp"
40fada20b9SNate Lawson.Sh DESCRIPTION
41fada20b9SNate LawsonRetrieve a list of pointers to all driver instances currently in the
42fada20b9SNate Lawsondevclass and return the list in
43fada20b9SNate Lawson.Fa *listp
44fada20b9SNate Lawsonand the number of drivers in the list in
45fada20b9SNate Lawson.Fa *countp .
46fada20b9SNate LawsonThe memory allocated for the list should be freed using
47a4be0b3cSRuslan Ermilov.Fn free *listp M_TEMP ,
4896ab794bSNate Lawsoneven if
4996ab794bSNate Lawson.Fa *countp
5096ab794bSNate Lawsonis 0.
51fada20b9SNate Lawson.Sh RETURN VALUES
52fada20b9SNate LawsonZero is returned on success, otherwise an appropriate error is returned.
53fada20b9SNate Lawson.Sh SEE ALSO
54fada20b9SNate Lawson.Xr devclass 9 ,
55fada20b9SNate Lawson.Xr device 9
56fada20b9SNate Lawson.Sh AUTHORS
57571dba6eSHiten PandyaThis manual page was written by
58fada20b9SNate Lawson.An Nate Lawson .
59