Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: include/linux/device-mapper.h

Issue 2020011: CHROMIUM: add boot-to-device mapper support. (Closed) Base URL: ssh://git@gitrw.chromium.org//kernel.git
Patch Set: fix the onyl Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « drivers/md/dm-table.c ('k') | init/Makefile » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2001 Sistina Software (UK) Limited. 2 * Copyright (C) 2001 Sistina Software (UK) Limited.
3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. 3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
4 * 4 *
5 * This file is released under the LGPL. 5 * This file is released under the LGPL.
6 */ 6 */
7 7
8 #ifndef _LINUX_DEVICE_MAPPER_H 8 #ifndef _LINUX_DEVICE_MAPPER_H
9 #define _LINUX_DEVICE_MAPPER_H 9 #define _LINUX_DEVICE_MAPPER_H
10 10
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 void dm_get(struct mapped_device *md); 209 void dm_get(struct mapped_device *md);
210 void dm_put(struct mapped_device *md); 210 void dm_put(struct mapped_device *md);
211 211
212 /* 212 /*
213 * An arbitrary pointer may be stored alongside a mapped device. 213 * An arbitrary pointer may be stored alongside a mapped device.
214 */ 214 */
215 void dm_set_mdptr(struct mapped_device *md, void *ptr); 215 void dm_set_mdptr(struct mapped_device *md, void *ptr);
216 void *dm_get_mdptr(struct mapped_device *md); 216 void *dm_get_mdptr(struct mapped_device *md);
217 217
218 /* 218 /*
219 * Export the device via the ioctl interface (uses mdptr).
220 */
221 int dm_ioctl_export(struct mapped_device *md, const char *name,
222 const char *uuid);
223
224 /*
219 * A device can still be used while suspended, but I/O is deferred. 225 * A device can still be used while suspended, but I/O is deferred.
220 */ 226 */
221 int dm_suspend(struct mapped_device *md, unsigned suspend_flags); 227 int dm_suspend(struct mapped_device *md, unsigned suspend_flags);
222 int dm_resume(struct mapped_device *md); 228 int dm_resume(struct mapped_device *md);
223 229
224 /* 230 /*
225 * Event functions. 231 * Event functions.
226 */ 232 */
227 uint32_t dm_get_event_nr(struct mapped_device *md); 233 uint32_t dm_get_event_nr(struct mapped_device *md);
228 int dm_wait_event(struct mapped_device *md, int event_nr); 234 int dm_wait_event(struct mapped_device *md, int event_nr);
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 409
404 /*----------------------------------------------------------------- 410 /*-----------------------------------------------------------------
405 * Helper for block layer and dm core operations 411 * Helper for block layer and dm core operations
406 *---------------------------------------------------------------*/ 412 *---------------------------------------------------------------*/
407 void dm_dispatch_request(struct request *rq); 413 void dm_dispatch_request(struct request *rq);
408 void dm_requeue_unmapped_request(struct request *rq); 414 void dm_requeue_unmapped_request(struct request *rq);
409 void dm_kill_unmapped_request(struct request *rq, int error); 415 void dm_kill_unmapped_request(struct request *rq, int error);
410 int dm_underlying_device_busy(struct request_queue *q); 416 int dm_underlying_device_busy(struct request_queue *q);
411 417
412 #endif /* _LINUX_DEVICE_MAPPER_H */ 418 #endif /* _LINUX_DEVICE_MAPPER_H */
OLDNEW
« no previous file with comments | « drivers/md/dm-table.c ('k') | init/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698