2 This file is part of systemd.
4 Copyright 2008-2012 Kay Sievers <kay@vrfy.org>
5 Copyright 2015 Tom Gundersen <teg@jklm.no>
7 systemd is free software; you can redistribute it and/or modify it
8 under the terms of the GNU Lesser General Public License as published by
9 the Free Software Foundation; either version 2.1 of the License, or
10 (at your option) any later version.
12 systemd is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
17 You should have received a copy of the GNU Lesser General Public License
18 along with systemd; If not, see <http://www.gnu.org/licenses/>.
24 #include "sd-device.h"
29 * Opaque object representing one kernel sys device.
34 /* real device object */
40 struct udev_device *parent;
43 struct udev_list properties;
44 uint64_t properties_generation;
45 struct udev_list tags;
46 uint64_t tags_generation;
47 struct udev_list devlinks;
48 uint64_t devlinks_generation;
49 struct udev_list sysattrs;
53 struct udev_device *udev_device_new(struct udev *udev);
55 #define assert_return_errno(expr, r, err) \
57 if (_unlikely_(!(expr))) { \
58 log_assert_failed_return(#expr, __FILE__, __LINE__, __PRETTY_FUNCTION__); \