blob: 2472d9da96dbb1b436eb0408d9235f1aed032b7e [file] [log] [blame]
Dan Williamsab68f262016-05-18 09:15:08 -07001/*
Dan Williams7b6be842017-04-11 09:49:49 -07002 * Copyright(c) 2016 - 2017 Intel Corporation. All rights reserved.
Dan Williamsab68f262016-05-18 09:15:08 -07003 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of version 2 of the GNU General Public License as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
12 */
13#ifndef __DAX_H__
14#define __DAX_H__
Dan Williams7b6be842017-04-11 09:49:49 -070015struct dax_device;
16struct dax_device *alloc_dax(void *private);
17void put_dax(struct dax_device *dax_dev);
18bool dax_alive(struct dax_device *dax_dev);
19void kill_dax(struct dax_device *dax_dev);
20struct dax_device *inode_dax(struct inode *inode);
21struct inode *dax_inode(struct dax_device *dax_dev);
22void *dax_get_private(struct dax_device *dax_dev);
Dan Williamsab68f262016-05-18 09:15:08 -070023#endif /* __DAX_H__ */