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