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.\" 29fada20b9SNate Lawson.\" $FreeBSD$ 30fada20b9SNate Lawson.\" 3196ab794bSNate Lawson.Dd May 19, 2005 32fada20b9SNate Lawson.Dt DEVCLASS_GET_DRIVERS 9 33fada20b9SNate Lawson.Os 34fada20b9SNate Lawson.Sh NAME 35fada20b9SNate Lawson.Nm devclass_get_drivers 36a4be0b3cSRuslan Ermilov.Nd "get a list of drivers in a devclass" 37fada20b9SNate Lawson.Sh SYNOPSIS 38fada20b9SNate Lawson.In sys/param.h 39fada20b9SNate Lawson.In sys/bus.h 40fada20b9SNate Lawson.Ft int 41fada20b9SNate Lawson.Fn devclass_get_drivers "devclass_t dc" "driver_t ***listp" "int *countp" 42fada20b9SNate Lawson.Sh DESCRIPTION 43fada20b9SNate LawsonRetrieve a list of pointers to all driver instances currently in the 44fada20b9SNate Lawsondevclass and return the list in 45fada20b9SNate Lawson.Fa *listp 46fada20b9SNate Lawsonand the number of drivers in the list in 47fada20b9SNate Lawson.Fa *countp . 48fada20b9SNate LawsonThe memory allocated for the list should be freed using 49a4be0b3cSRuslan Ermilov.Fn free *listp M_TEMP , 5096ab794bSNate Lawsoneven if 5196ab794bSNate Lawson.Fa *countp 5296ab794bSNate Lawsonis 0. 53fada20b9SNate Lawson.Sh RETURN VALUES 54fada20b9SNate LawsonZero is returned on success, otherwise an appropriate error is returned. 55fada20b9SNate Lawson.Sh SEE ALSO 56fada20b9SNate Lawson.Xr devclass 9 , 57fada20b9SNate Lawson.Xr device 9 58fada20b9SNate Lawson.Sh AUTHORS 59fada20b9SNate LawsonThis man page was written by 60fada20b9SNate Lawson.An Nate Lawson . 61