dm.h (4b4193256c8d3bc3a5397b5cd9494c2ad386317d) dm.h (5b0fab508992c2e120971da658ce80027acbc405)
1/*
2 * Internal header file for device mapper
3 *
4 * Copyright (C) 2001, 2002 Sistina Software
5 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
6 *
7 * This file is released under the LGPL.
8 */

--- 59 unchanged lines hidden (view full) ---

68struct dm_target *dm_table_get_immutable_target(struct dm_table *t);
69struct dm_target *dm_table_get_wildcard_target(struct dm_table *t);
70bool dm_table_bio_based(struct dm_table *t);
71bool dm_table_request_based(struct dm_table *t);
72void dm_table_free_md_mempools(struct dm_table *t);
73struct dm_md_mempools *dm_table_get_md_mempools(struct dm_table *t);
74bool dm_table_supports_dax(struct dm_table *t, iterate_devices_callout_fn fn,
75 int *blocksize);
1/*
2 * Internal header file for device mapper
3 *
4 * Copyright (C) 2001, 2002 Sistina Software
5 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
6 *
7 * This file is released under the LGPL.
8 */

--- 59 unchanged lines hidden (view full) ---

68struct dm_target *dm_table_get_immutable_target(struct dm_table *t);
69struct dm_target *dm_table_get_wildcard_target(struct dm_table *t);
70bool dm_table_bio_based(struct dm_table *t);
71bool dm_table_request_based(struct dm_table *t);
72void dm_table_free_md_mempools(struct dm_table *t);
73struct dm_md_mempools *dm_table_get_md_mempools(struct dm_table *t);
74bool dm_table_supports_dax(struct dm_table *t, iterate_devices_callout_fn fn,
75 int *blocksize);
76int device_supports_dax(struct dm_target *ti, struct dm_dev *dev,
76int device_not_dax_capable(struct dm_target *ti, struct dm_dev *dev,
77 sector_t start, sector_t len, void *data);
78
79void dm_lock_md_type(struct mapped_device *md);
80void dm_unlock_md_type(struct mapped_device *md);
81void dm_set_md_type(struct mapped_device *md, enum dm_queue_mode type);
82enum dm_queue_mode dm_get_md_type(struct mapped_device *md);
83struct target_type *dm_get_immutable_target_type(struct mapped_device *md);
84

--- 89 unchanged lines hidden (view full) ---

174 * mapped_device operations
175 */
176void dm_destroy(struct mapped_device *md);
177void dm_destroy_immediate(struct mapped_device *md);
178int dm_open_count(struct mapped_device *md);
179int dm_lock_for_deletion(struct mapped_device *md, bool mark_deferred, bool only_deferred);
180int dm_cancel_deferred_remove(struct mapped_device *md);
181int dm_request_based(struct mapped_device *md);
77 sector_t start, sector_t len, void *data);
78
79void dm_lock_md_type(struct mapped_device *md);
80void dm_unlock_md_type(struct mapped_device *md);
81void dm_set_md_type(struct mapped_device *md, enum dm_queue_mode type);
82enum dm_queue_mode dm_get_md_type(struct mapped_device *md);
83struct target_type *dm_get_immutable_target_type(struct mapped_device *md);
84

--- 89 unchanged lines hidden (view full) ---

174 * mapped_device operations
175 */
176void dm_destroy(struct mapped_device *md);
177void dm_destroy_immediate(struct mapped_device *md);
178int dm_open_count(struct mapped_device *md);
179int dm_lock_for_deletion(struct mapped_device *md, bool mark_deferred, bool only_deferred);
180int dm_cancel_deferred_remove(struct mapped_device *md);
181int dm_request_based(struct mapped_device *md);
182sector_t dm_get_size(struct mapped_device *md);
183struct request_queue *dm_get_md_queue(struct mapped_device *md);
184int dm_get_table_device(struct mapped_device *md, dev_t dev, fmode_t mode,
185 struct dm_dev **result);
186void dm_put_table_device(struct mapped_device *md, struct dm_dev *d);
182int dm_get_table_device(struct mapped_device *md, dev_t dev, fmode_t mode,
183 struct dm_dev **result);
184void dm_put_table_device(struct mapped_device *md, struct dm_dev *d);
187struct dm_stats *dm_get_stats(struct mapped_device *md);
188
189int dm_kobject_uevent(struct mapped_device *md, enum kobject_action action,
190 unsigned cookie);
191
192void dm_internal_suspend(struct mapped_device *md);
193void dm_internal_resume(struct mapped_device *md);
194
195int dm_io_init(void);

--- 19 unchanged lines hidden ---
185
186int dm_kobject_uevent(struct mapped_device *md, enum kobject_action action,
187 unsigned cookie);
188
189void dm_internal_suspend(struct mapped_device *md);
190void dm_internal_resume(struct mapped_device *md);
191
192int dm_io_init(void);

--- 19 unchanged lines hidden ---