xref: /freebsd/share/man/man9/devtoname.9 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
12da64d5dSChris Costello.\" Copyright (c) 1999 Chris Costello
22da64d5dSChris Costello.\" All rights reserved.
32da64d5dSChris Costello.\"
42da64d5dSChris Costello.\" Redistribution and use in source and binary forms, with or without
52da64d5dSChris Costello.\" modification, are permitted provided that the following conditions
62da64d5dSChris Costello.\" are met:
72da64d5dSChris Costello.\" 1. Redistributions of source code must retain the above copyright
82da64d5dSChris Costello.\"    notice, this list of conditions and the following disclaimer.
92da64d5dSChris Costello.\" 2. Redistributions in binary form must reproduce the above copyright
102da64d5dSChris Costello.\"    notice, this list of conditions and the following disclaimer in the
112da64d5dSChris Costello.\"    documentation and/or other materials provided with the distribution.
122da64d5dSChris Costello.\"
132da64d5dSChris Costello.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
142da64d5dSChris Costello.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
152da64d5dSChris Costello.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
162da64d5dSChris Costello.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
172da64d5dSChris Costello.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
182da64d5dSChris Costello.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
192da64d5dSChris Costello.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
202da64d5dSChris Costello.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
212da64d5dSChris Costello.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
222da64d5dSChris Costello.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
232da64d5dSChris Costello.\" SUCH DAMAGE.
242da64d5dSChris Costello.\"
25*b5d1ccb4SEd Schouten.Dd February 10, 2012
262da64d5dSChris Costello.Dt DEVTONAME 9
27aa12cea2SUlrich Spörlein.Os
282da64d5dSChris Costello.Sh NAME
292da64d5dSChris Costello.Nm devtoname
305dc6c3a3SEd Schouten.Nd "converts character device into a string indicating the device name"
312da64d5dSChris Costello.Sh SYNOPSIS
3232eef9aeSRuslan Ermilov.In sys/param.h
3332eef9aeSRuslan Ermilov.In sys/conf.h
342da64d5dSChris Costello.Ft const char *
355dc6c3a3SEd Schouten.Fn devtoname "struct cdev *dev"
362da64d5dSChris Costello.Sh DESCRIPTION
372da64d5dSChris CostelloThe
382da64d5dSChris Costello.Fn devtoname
39a0942a60SHiten Pandyafunction returns a pointer to the name of the device passed to it.
40a0942a60SHiten PandyaThe name is whatever was set to it in
412da64d5dSChris Costello.Fn make_dev .
422da64d5dSChris Costello.Sh HISTORY
432da64d5dSChris CostelloThe
442da64d5dSChris Costello.Fn devtoname
452da64d5dSChris Costellointerface first appeared in
462da64d5dSChris Costello.Fx 4.0
47