1265e5898SJohn Baldwin.\" 2265e5898SJohn Baldwin.\" Copyright (c) 2015 John Baldwin <jhb@FreeBSD.org> 3265e5898SJohn Baldwin.\" 4265e5898SJohn Baldwin.\" Redistribution and use in source and binary forms, with or without 5265e5898SJohn Baldwin.\" modification, are permitted provided that the following conditions 6265e5898SJohn Baldwin.\" are met: 7265e5898SJohn Baldwin.\" 1. Redistributions of source code must retain the above copyright 8265e5898SJohn Baldwin.\" notice, this list of conditions and the following disclaimer. 9265e5898SJohn Baldwin.\" 2. Redistributions in binary form must reproduce the above copyright 10265e5898SJohn Baldwin.\" notice, this list of conditions and the following disclaimer in the 11265e5898SJohn Baldwin.\" documentation and/or other materials provided with the distribution. 12265e5898SJohn Baldwin.\" 13265e5898SJohn Baldwin.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14265e5898SJohn Baldwin.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15265e5898SJohn Baldwin.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16265e5898SJohn Baldwin.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17265e5898SJohn Baldwin.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18265e5898SJohn Baldwin.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19265e5898SJohn Baldwin.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20265e5898SJohn Baldwin.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21265e5898SJohn Baldwin.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22265e5898SJohn Baldwin.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23265e5898SJohn Baldwin.\" SUCH DAMAGE. 24265e5898SJohn Baldwin.\" 259289f547SJohn Baldwin.Dd October 17, 2016 26265e5898SJohn Baldwin.Dt sysdecode_ioctlname 3 27265e5898SJohn Baldwin.Os 28265e5898SJohn Baldwin.Sh NAME 29265e5898SJohn Baldwin.Nm sysdecode_ioctlname 30265e5898SJohn Baldwin.Nd lookup name of device control command 31265e5898SJohn Baldwin.Sh LIBRARY 32265e5898SJohn Baldwin.Lb libsysdecode 33265e5898SJohn Baldwin.Sh SYNOPSIS 349289f547SJohn Baldwin.In sysdecode.h 35*aeccc5c9SMaxim Konovalov.Ft const char * 36265e5898SJohn Baldwin.Fn sysdecode_ioctlname "unsigned long request" 37265e5898SJohn Baldwin.Sh DESCRIPTION 38265e5898SJohn BaldwinThe 39265e5898SJohn Baldwin.Fn sysdecode_ioctlname 40265e5898SJohn Baldwinfunction returns the name of a device control request identified by 41265e5898SJohn Baldwin.Fa request . 42265e5898SJohn BaldwinA table of names is generated during the build of the 43265e5898SJohn Baldwin.Nm sysdecode 44265e5898SJohn Baldwinlibrary from system headers that maps device control request values to 45265e5898SJohn Baldwinthe name of the corresponding C macro. 46265e5898SJohn Baldwin.Sh RETURN VALUES 47265e5898SJohn BaldwinThe 48265e5898SJohn Baldwin.Fn sysdecode_ioctlname 49265e5898SJohn Baldwinfunction returns the name of a device control request if 50265e5898SJohn Baldwin.Fa request 51265e5898SJohn Baldwinis a known value; 52265e5898SJohn Baldwinotherwise 53265e5898SJohn Baldwin.Dv NULL . 54265e5898SJohn Baldwin.Sh SEE ALSO 55265e5898SJohn Baldwin.Xr sysdecode 3 56