1*265e5898SJohn Baldwin.\" 2*265e5898SJohn Baldwin.\" Copyright (c) 2015 John Baldwin <jhb@FreeBSD.org> 3*265e5898SJohn Baldwin.\" All rights reserved. 4*265e5898SJohn Baldwin.\" 5*265e5898SJohn Baldwin.\" Redistribution and use in source and binary forms, with or without 6*265e5898SJohn Baldwin.\" modification, are permitted provided that the following conditions 7*265e5898SJohn Baldwin.\" are met: 8*265e5898SJohn Baldwin.\" 1. Redistributions of source code must retain the above copyright 9*265e5898SJohn Baldwin.\" notice, this list of conditions and the following disclaimer. 10*265e5898SJohn Baldwin.\" 2. Redistributions in binary form must reproduce the above copyright 11*265e5898SJohn Baldwin.\" notice, this list of conditions and the following disclaimer in the 12*265e5898SJohn Baldwin.\" documentation and/or other materials provided with the distribution. 13*265e5898SJohn Baldwin.\" 14*265e5898SJohn Baldwin.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15*265e5898SJohn Baldwin.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16*265e5898SJohn Baldwin.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17*265e5898SJohn Baldwin.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18*265e5898SJohn Baldwin.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19*265e5898SJohn Baldwin.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20*265e5898SJohn Baldwin.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21*265e5898SJohn Baldwin.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22*265e5898SJohn Baldwin.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23*265e5898SJohn Baldwin.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24*265e5898SJohn Baldwin.\" SUCH DAMAGE. 25*265e5898SJohn Baldwin.\" 26*265e5898SJohn Baldwin.\" $FreeBSD$ 27*265e5898SJohn Baldwin.\" 28*265e5898SJohn Baldwin.Dd December 12, 2015 29*265e5898SJohn Baldwin.Dt sysdecode_ioctlname 3 30*265e5898SJohn Baldwin.Os 31*265e5898SJohn Baldwin.Sh NAME 32*265e5898SJohn Baldwin.Nm sysdecode_ioctlname 33*265e5898SJohn Baldwin.Nd lookup name of device control command 34*265e5898SJohn Baldwin.Sh LIBRARY 35*265e5898SJohn Baldwin.Lb libsysdecode 36*265e5898SJohn Baldwin.Sh SYNOPSIS 37*265e5898SJohn Baldwin.Ft conts char * 38*265e5898SJohn Baldwin.Fn sysdecode_ioctlname "unsigned long request" 39*265e5898SJohn Baldwin.Sh DESCRIPTION 40*265e5898SJohn BaldwinThe 41*265e5898SJohn Baldwin.Fn sysdecode_ioctlname 42*265e5898SJohn Baldwinfunction returns the name of a device control request identified by 43*265e5898SJohn Baldwin.Fa request . 44*265e5898SJohn BaldwinA table of names is generated during the build of the 45*265e5898SJohn Baldwin.Nm sysdecode 46*265e5898SJohn Baldwinlibrary from system headers that maps device control request values to 47*265e5898SJohn Baldwinthe name of the corresponding C macro. 48*265e5898SJohn Baldwin.Sh RETURN VALUES 49*265e5898SJohn BaldwinThe 50*265e5898SJohn Baldwin.Fn sysdecode_ioctlname 51*265e5898SJohn Baldwinfunction returns the name of a device control request if 52*265e5898SJohn Baldwin.Fa request 53*265e5898SJohn Baldwinis a known value; 54*265e5898SJohn Baldwinotherwise 55*265e5898SJohn Baldwin.Dv NULL . 56*265e5898SJohn Baldwin.Sh SEE ALSO 57*265e5898SJohn Baldwin.Xr sysdecode 3 58