xref: /dflybsd-src/lib/libdevattr/devattr.3 (revision fb3c2c0caaaa0e5d800e088b7dd7983e9ab009ec)
1bc737720SAlex Hornung.\"
2bc737720SAlex Hornung.\" Copyright (c) 2010 The DragonFly Project.  All rights reserved.
3bc737720SAlex Hornung.\"
4bc737720SAlex Hornung.\" Redistribution and use in source and binary forms, with or without
5bc737720SAlex Hornung.\" modification, are permitted provided that the following conditions
6bc737720SAlex Hornung.\" are met:
7bc737720SAlex Hornung.\"
8bc737720SAlex Hornung.\" 1. Redistributions of source code must retain the above copyright
9bc737720SAlex Hornung.\"    notice, this list of conditions and the following disclaimer.
10bc737720SAlex Hornung.\" 2. Redistributions in binary form must reproduce the above copyright
11bc737720SAlex Hornung.\"    notice, this list of conditions and the following disclaimer in
12bc737720SAlex Hornung.\"    the documentation and/or other materials provided with the
13bc737720SAlex Hornung.\"    distribution.
14bc737720SAlex Hornung.\" 3. Neither the name of The DragonFly Project nor the names of its
15bc737720SAlex Hornung.\"    contributors may be used to endorse or promote products derived
16bc737720SAlex Hornung.\"    from this software without specific, prior written permission.
17bc737720SAlex Hornung.\"
18bc737720SAlex Hornung.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19bc737720SAlex Hornung.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20bc737720SAlex Hornung.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21bc737720SAlex Hornung.\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
22bc737720SAlex Hornung.\" COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23bc737720SAlex Hornung.\" INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
24bc737720SAlex Hornung.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25bc737720SAlex Hornung.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
26bc737720SAlex Hornung.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27bc737720SAlex Hornung.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
28bc737720SAlex Hornung.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29bc737720SAlex Hornung.\" SUCH DAMAGE.
30bc737720SAlex Hornung.\"
31bc737720SAlex Hornung.Dd July 11, 2010
32bc737720SAlex Hornung.Dt DEVATTR 3
33bc737720SAlex Hornung.Os
34bc737720SAlex Hornung.Sh NAME
35bc737720SAlex Hornung.Nm devattr
36bc737720SAlex Hornung.Nd device properties and event notification
37bc737720SAlex Hornung.Sh LIBRARY
38bc737720SAlex Hornung.Lb libdevattr
39bc737720SAlex Hornung.Sh DESCRIPTION
40bc737720SAlex HornungThe
41e586f31cSSascha Wildner.Nm
42bc737720SAlex Hornunglibrary provides an interface to receive event notifications related to device
43bc737720SAlex Hornungattach and detach events, as well as an interface to query system devices for
44bc737720SAlex Hornungtheir properties.
45bc737720SAlex Hornung.Sh COMPATIBILITY
46bc737720SAlex HornungThe
47*edf2e657SSascha Wildner.Nm
48bc737720SAlex Hornunglibrary offers a set of functions that is aimed to be as compatible as possible
49e586f31cSSascha Wildnerwith Linux' libudev, but is not limited by this and also provides a different
50e586f31cSSascha Wildnerset of functionality.
51bc737720SAlex Hornung.Sh SEE ALSO
52bc737720SAlex Hornung.Xr udev 3 ,
53bc737720SAlex Hornung.Xr udev_device 3 ,
54bc737720SAlex Hornung.Xr udev_enumerate 3 ,
55bc737720SAlex Hornung.Xr udev_monitor 3 ,
56bc737720SAlex Hornung.Xr udevd 8
57