dm.h (447a8b858e4bda41c394b1bc7fdbc9dc0bdf44f6) | dm.h (86f1152b117a404229fd6f08ec3faca779f37b92) |
---|---|
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 */ --- 30 unchanged lines hidden (view full) --- 39#define DM_TYPE_REQUEST_BASED 2 40 41/* 42 * List of devices that a metadevice uses and should open/close. 43 */ 44struct dm_dev_internal { 45 struct list_head list; 46 atomic_t count; | 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 */ --- 30 unchanged lines hidden (view full) --- 39#define DM_TYPE_REQUEST_BASED 2 40 41/* 42 * List of devices that a metadevice uses and should open/close. 43 */ 44struct dm_dev_internal { 45 struct list_head list; 46 atomic_t count; |
47 struct dm_dev dm_dev; | 47 struct dm_dev *dm_dev; |
48}; 49 50struct dm_table; 51struct dm_md_mempools; 52 53/*----------------------------------------------------------------- 54 * Internal table functions. 55 *---------------------------------------------------------------*/ --- 127 unchanged lines hidden (view full) --- 183void dm_destroy(struct mapped_device *md); 184void dm_destroy_immediate(struct mapped_device *md); 185int dm_open_count(struct mapped_device *md); 186int dm_lock_for_deletion(struct mapped_device *md, bool mark_deferred, bool only_deferred); 187int dm_cancel_deferred_remove(struct mapped_device *md); 188int dm_request_based(struct mapped_device *md); 189sector_t dm_get_size(struct mapped_device *md); 190struct request_queue *dm_get_md_queue(struct mapped_device *md); | 48}; 49 50struct dm_table; 51struct dm_md_mempools; 52 53/*----------------------------------------------------------------- 54 * Internal table functions. 55 *---------------------------------------------------------------*/ --- 127 unchanged lines hidden (view full) --- 183void dm_destroy(struct mapped_device *md); 184void dm_destroy_immediate(struct mapped_device *md); 185int dm_open_count(struct mapped_device *md); 186int dm_lock_for_deletion(struct mapped_device *md, bool mark_deferred, bool only_deferred); 187int dm_cancel_deferred_remove(struct mapped_device *md); 188int dm_request_based(struct mapped_device *md); 189sector_t dm_get_size(struct mapped_device *md); 190struct request_queue *dm_get_md_queue(struct mapped_device *md); |
191int dm_get_table_device(struct mapped_device *md, dev_t dev, fmode_t mode, 192 struct dm_dev **result); 193void dm_put_table_device(struct mapped_device *md, struct dm_dev *d); |
|
191struct dm_stats *dm_get_stats(struct mapped_device *md); 192 193int dm_kobject_uevent(struct mapped_device *md, enum kobject_action action, 194 unsigned cookie); 195 196void dm_internal_suspend(struct mapped_device *md); 197void dm_internal_resume(struct mapped_device *md); 198 --- 24 unchanged lines hidden --- | 194struct dm_stats *dm_get_stats(struct mapped_device *md); 195 196int dm_kobject_uevent(struct mapped_device *md, enum kobject_action action, 197 unsigned cookie); 198 199void dm_internal_suspend(struct mapped_device *md); 200void dm_internal_resume(struct mapped_device *md); 201 --- 24 unchanged lines hidden --- |