]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/loop-util.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 Copyright 2016 Lennart Poettering
10 typedef struct LoopDevice LoopDevice
;
12 /* Some helpers for setting up loopback block devices */
21 int loop_device_make(int fd
, int open_flags
, LoopDevice
**ret
);
22 int loop_device_make_by_path(const char *path
, int open_flags
, LoopDevice
**ret
);
24 LoopDevice
* loop_device_unref(LoopDevice
*d
);
25 DEFINE_TRIVIAL_CLEANUP_FUNC(LoopDevice
*, loop_device_unref
);
27 void loop_device_relinquish(LoopDevice
*d
);