1f6bcbf52SWarner Losh.\" -*- nroff -*- 2f6bcbf52SWarner Losh.\" 3*a339dcccSWarner Losh.\" Copyright (c) 2003 M. Warner Losh <imp@FreeBSD.org> 4f6bcbf52SWarner Losh.\" 5f6bcbf52SWarner Losh.\" Redistribution and use in source and binary forms, with or without 6f6bcbf52SWarner Losh.\" modification, are permitted provided that the following conditions 7f6bcbf52SWarner Losh.\" are met: 8f6bcbf52SWarner Losh.\" 1. Redistributions of source code must retain the above copyright 9f6bcbf52SWarner Losh.\" notice, this list of conditions and the following disclaimer. 10f6bcbf52SWarner Losh.\" 2. Redistributions in binary form must reproduce the above copyright 11f6bcbf52SWarner Losh.\" notice, this list of conditions and the following disclaimer in the 12f6bcbf52SWarner Losh.\" documentation and/or other materials provided with the distribution. 13f6bcbf52SWarner Losh.\" 14f6bcbf52SWarner Losh.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR 15f6bcbf52SWarner Losh.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16f6bcbf52SWarner Losh.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17f6bcbf52SWarner Losh.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT, 18f6bcbf52SWarner Losh.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19f6bcbf52SWarner Losh.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20f6bcbf52SWarner Losh.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21f6bcbf52SWarner Losh.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22f6bcbf52SWarner Losh.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23f6bcbf52SWarner Losh.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24f6bcbf52SWarner Losh.\" 25f6bcbf52SWarner Losh.Dd April 21, 2003 26f6bcbf52SWarner Losh.Dt DEVICE_GET_NAME 9 27f6bcbf52SWarner Losh.Os 28f6bcbf52SWarner Losh.Sh NAME 293e1cee04SRuslan Ermilov.Nm device_get_name , device_get_nameunit 303e1cee04SRuslan Ermilov.Nd access the name of a device's device class or instance 31f6bcbf52SWarner Losh.Sh SYNOPSIS 32f6bcbf52SWarner Losh.In sys/param.h 33f6bcbf52SWarner Losh.In sys/bus.h 3496ea7698SDag-Erling Smørgrav.Ft const char * 35f6bcbf52SWarner Losh.Fn device_get_name "device_t dev" 3696ea7698SDag-Erling Smørgrav.Ft const char * 37f6bcbf52SWarner Losh.Fn device_get_nameunit "device_t dev" 38f6bcbf52SWarner Losh.Sh DESCRIPTION 393e1cee04SRuslan ErmilovThe 40f6bcbf52SWarner Losh.Fn device_get_name 413e1cee04SRuslan Ermilovfunction returns the name of the device's device class. 42f6bcbf52SWarner Losh.Pp 433e1cee04SRuslan ErmilovThe 44f6bcbf52SWarner Losh.Fn device_get_nameunit 453e1cee04SRuslan Ermilovfunction returns the name of the device's instance. 46f6bcbf52SWarner Losh.Sh SEE ALSO 47f6bcbf52SWarner Losh.Xr device 9 48f6bcbf52SWarner Losh.Sh AUTHORS 4909356c84SHiten PandyaThis manual page was written by 50f6bcbf52SWarner Losh.An Warner Losh . 51