]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/core/device.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 This file is part of systemd.
7 Copyright 2010 Lennart Poettering
10 typedef struct Device Device
;
12 typedef enum DeviceFound
{
14 DEVICE_FOUND_UDEV
= 1 << 1,
15 DEVICE_FOUND_UDEV_DB
= 1 << 2,
16 DEVICE_FOUND_MOUNT
= 1 << 3,
17 DEVICE_FOUND_SWAP
= 1 << 4,
26 /* In order to be able to distinguish dependencies on
27 different device nodes we might end up creating multiple
28 devices for the same sysfs path. We chain them up here. */
29 LIST_FIELDS(struct Device
, same_sysfs
);
31 DeviceState state
, deserialized_state
;
36 extern const UnitVTable device_vtable
;
38 int device_found_node(Manager
*m
, const char *node
, bool add
, DeviceFound found
, bool now
);
39 bool device_shall_be_bound_by(Unit
*device
, Unit
*u
);