Debian Codegraph @

upstream/debian-unstable/man3/sd-device.3

raw
1 '\" t
2 .TH "SD\-DEVICE" "3" "" "systemd 261~rc3" "sd-device"
3 .\" -----------------------------------------------------------------
4 .\" * Define some portability stuff
5 .\" -----------------------------------------------------------------
6 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .\" http://bugs.debian.org/507673
8 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 .ie \n(.g .ds Aq \(aq
11 .el .ds Aq '
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
16 .nh
17 .\" disable justification (adjust text to left margin only)
18 .ad l
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
22 .SH "NAME"
23 sd-device \- API for enumerating and introspecting local devices
24 .SH "SYNOPSIS"
25 .sp
26 .ft B
27 .nf
28 #include <systemd/sd\-device\&.h>
29 .fi
30 .ft
31 .HP \w'\fBpkg\-config\ \-\-cflags\ \-\-libs\ libsystemd\fR\ 'u
32 \fBpkg\-config \-\-cflags \-\-libs libsystemd\fR
33 .SH "DESCRIPTION"
34 .PP
35 sd\-device\&.h
36 is part of
37 \fBlibsystemd\fR(3)
38 and provides an API to introspect and enumerate devices on the local system\&. It provides a programmatic interface to the database of devices and their properties mananaged by
39 \fBsystemd-udevd.service\fR(8)\&. This API is a replacement for
40 \fBlibudev\fR(3)
41 and
42 libudev\&.h\&.
43 .PP
44 See
45 .RS 4
46 \fBsd_device_get_syspath\fR(3),
47 .RE
48 .RS 4
49 \fBsd_device_ref\fR(3)
50 .RE
51 for more information about the functions available\&.
52 .SH "NOTES"
53 .PP
54 Functions described here are available as a shared library, which can be compiled against and linked to with the
55 \fBlibsystemd\fR\ \&\fBpkg-config\fR(1)
56 file\&.
57 .PP
58 The code described here uses
59 \fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call
60 \fBsetenv\fR(3)
61 from a parallel thread\&. It is recommended to only do calls to
62 \fBsetenv()\fR
63 from an early phase of the program when no other threads have been started\&.
64 .SH "SEE ALSO"
65 .PP
66 \fBsystemd\fR(1), \fBsd-event\fR(3), \fBudevadm\fR(8)