Add explicit device_close routine.

This commit is contained in:
Ondrej Kozina
2019-05-24 16:10:53 +02:00
parent 0e4757e0fb
commit e92e320956
2 changed files with 22 additions and 9 deletions

View File

@@ -109,6 +109,7 @@ const char *crypt_get_cipher_spec(struct crypt_device *cd);
struct device;
int device_alloc(struct crypt_device *cd, struct device **device, const char *path);
int device_alloc_no_check(struct device **device, const char *path);
void device_close(struct crypt_device *cd, struct device *device);
void device_free(struct crypt_device *cd, struct device *device);
const char *device_path(const struct device *device);
const char *device_dm_name(const struct device *device);