aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/xen-blkback/common.h
diff options
context:
space:
mode:
authorPaul Durrant <pdurrant@amazon.com>2019-12-02 11:41:17 +0000
committerJuergen Gross <jgross@suse.com>2019-12-04 11:35:35 +0100
commit14855954f63608c5622d5eaa964d3872ce5c5514 (patch)
tree47775d38e3f27c12a0464fc877ab9cf5195df050 /drivers/block/xen-blkback/common.h
parentxen/xenbus: reference count registered modules (diff)
downloadlinux-dev-14855954f63608c5622d5eaa964d3872ce5c5514.tar.xz
linux-dev-14855954f63608c5622d5eaa964d3872ce5c5514.zip
xen-blkback: allow module to be cleanly unloaded
Add a module_exit() to perform the necessary clean-up. Signed-off-by: Paul Durrant <pdurrant@amazon.com> Reviewed-by: "Roger Pau Monné" <roger.pau@citrix.com> Reviewed-by: Juergen Gross <jgross@suse.com> Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'drivers/block/xen-blkback/common.h')
-rw-r--r--drivers/block/xen-blkback/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/block/xen-blkback/common.h b/drivers/block/xen-blkback/common.h
index 1d3002d773f7..49132b0adbbe 100644
--- a/drivers/block/xen-blkback/common.h
+++ b/drivers/block/xen-blkback/common.h
@@ -375,9 +375,12 @@ struct phys_req {
struct block_device *bdev;
blkif_sector_t sector_number;
};
+
int xen_blkif_interface_init(void);
+void xen_blkif_interface_fini(void);
int xen_blkif_xenbus_init(void);
+void xen_blkif_xenbus_fini(void);
irqreturn_t xen_blkif_be_int(int irq, void *dev_id);
int xen_blkif_schedule(void *arg);