4 /* device-mapper library helpers */
6 /* Device mapper backend - kernel support flags */
7 #define DM_KEY_WIPE_SUPPORTED (1 << 0) /* key wipe message */
8 #define DM_LMK_SUPPORTED (1 << 1) /* lmk mode */
9 #define DM_SECURE_SUPPORTED (1 << 2) /* wipe (secure) buffer flag */
10 #define DM_PLAIN64_SUPPORTED (1 << 3) /* plain64 IV */
11 uint32_t dm_flags(void);
13 const char *dm_get_dir(void);
14 int dm_init(struct crypt_device *context, int check_kernel);
16 int dm_remove_device(const char *name, int force, uint64_t size);
17 int dm_status_device(const char *name);
18 int dm_query_device(const char *name,
29 int dm_create_device(const char *name, const char *device, const char *cipher,
30 const char *type, const char *uuid,
31 uint64_t size, uint64_t skip, uint64_t offset,
32 size_t key_size, const char *key,
33 int read_only, int reload);
34 int dm_suspend_and_wipe_key(const char *name);
35 int dm_resume_and_reinstate_key(const char *name,
38 char *dm_device_path(const char *dev_id);
39 int dm_is_dm_device(int major);
41 #endif /* _UTILS_DM_H */