summaryrefslogtreecommitdiffstats
path: root/loop_main.h
diff options
context:
space:
mode:
authorJonathan Bauer2020-05-29 14:56:41 +0200
committerJonathan Bauer2020-05-29 16:07:13 +0200
commit763847378f6221cae8c910983800b3ca41dccb89 (patch)
treee1098bb3d3e6ed7828a6725a47605b49f35da9b2 /loop_main.h
parentInitial working state (diff)
downloadxloop-763847378f6221cae8c910983800b3ca41dccb89.tar.gz
xloop-763847378f6221cae8c910983800b3ca41dccb89.tar.xz
xloop-763847378f6221cae8c910983800b3ca41dccb89.zip
Rename to xloop
Diffstat (limited to 'loop_main.h')
-rw-r--r--loop_main.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/loop_main.h b/loop_main.h
index 324ec2e..eec7ceb 100644
--- a/loop_main.h
+++ b/loop_main.h
@@ -23,6 +23,10 @@
#include "loop_file_fmt.h"
+// See: https://www.kernel.org/doc/Documentation/admin-guide/devices.txt
+#define XLOOP_MAJOR 120
+#define XLOOP_CTRL_MINOR 142
+
/* Possible states of device */
enum {
Lo_unbound,
@@ -133,7 +137,7 @@ struct loop_func_table {
struct module *owner;
};
-int loop_register_transfer(struct loop_func_table *funcs);
-int loop_unregister_transfer(int number);
+int xloop_register_transfer(struct loop_func_table *funcs);
+int xloop_unregister_transfer(int number);
#endif