1265e5898SJohn Baldwin.\"
2265e5898SJohn Baldwin.\" Copyright (c) 2015 John Baldwin <[email protected]>
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.\"
25265e5898SJohn Baldwin.\" $FreeBSD$
26265e5898SJohn Baldwin.\"
279289f547SJohn Baldwin.Dd October 17, 2016
28265e5898SJohn Baldwin.Dt sysdecode_ioctlname 3
29265e5898SJohn Baldwin.Os
30265e5898SJohn Baldwin.Sh NAME
31265e5898SJohn Baldwin.Nm sysdecode_ioctlname
32265e5898SJohn Baldwin.Nd lookup name of device control command
33265e5898SJohn Baldwin.Sh LIBRARY
34265e5898SJohn Baldwin.Lb libsysdecode
35265e5898SJohn Baldwin.Sh SYNOPSIS
369289f547SJohn Baldwin.In sys/types.h
379289f547SJohn Baldwin.In stdbool.h
389289f547SJohn Baldwin.In sysdecode.h
39*aeccc5c9SMaxim Konovalov.Ft const char *
40265e5898SJohn Baldwin.Fn sysdecode_ioctlname "unsigned long request"
41265e5898SJohn Baldwin.Sh DESCRIPTION
42265e5898SJohn BaldwinThe
43265e5898SJohn Baldwin.Fn sysdecode_ioctlname
44265e5898SJohn Baldwinfunction returns the name of a device control request identified by
45265e5898SJohn Baldwin.Fa request .
46265e5898SJohn BaldwinA table of names is generated during the build of the
47265e5898SJohn Baldwin.Nm sysdecode
48265e5898SJohn Baldwinlibrary from system headers that maps device control request values to
49265e5898SJohn Baldwinthe name of the corresponding C macro.
50265e5898SJohn Baldwin.Sh RETURN VALUES
51265e5898SJohn BaldwinThe
52265e5898SJohn Baldwin.Fn sysdecode_ioctlname
53265e5898SJohn Baldwinfunction returns the name of a device control request if
54265e5898SJohn Baldwin.Fa request
55265e5898SJohn Baldwinis a known value;
56265e5898SJohn Baldwinotherwise
57265e5898SJohn Baldwin.Dv NULL .
58265e5898SJohn Baldwin.Sh SEE ALSO
59265e5898SJohn Baldwin.Xr sysdecode 3
60