xref: /linux/drivers/md/dm-mpath.h (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
13bd94003SHeinz Mauelshagen /* SPDX-License-Identifier: GPL-2.0-only */
21da177e4SLinus Torvalds /*
31da177e4SLinus Torvalds  * Copyright (C) 2004 Red Hat, Inc. All rights reserved.
41da177e4SLinus Torvalds  *
51da177e4SLinus Torvalds  * This file is released under the GPL.
61da177e4SLinus Torvalds  *
71da177e4SLinus Torvalds  * Multipath.
81da177e4SLinus Torvalds  */
91da177e4SLinus Torvalds 
101da177e4SLinus Torvalds #ifndef	DM_MPATH_H
111da177e4SLinus Torvalds #define	DM_MPATH_H
121da177e4SLinus Torvalds 
131da177e4SLinus Torvalds struct dm_dev;
141da177e4SLinus Torvalds 
15c922d5f7SJosef "Jeff" Sipek struct dm_path {
161da177e4SLinus Torvalds 	struct dm_dev *dev;	/* Read-only */
171da177e4SLinus Torvalds 	void *pscontext;	/* For path-selector use */
181da177e4SLinus Torvalds };
191da177e4SLinus Torvalds 
201da177e4SLinus Torvalds /* Callback for hwh_pg_init_fn to use when complete */
21*86a3238cSHeinz Mauelshagen void dm_pg_init_complete(struct dm_path *path, unsigned int err_flags);
221da177e4SLinus Torvalds 
231da177e4SLinus Torvalds #endif
24