diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2023-07-13 10:25:14 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2023-07-13 10:25:14 +0200 |
| commit | 006399dc8d5983037d1ac5a7b9d81a0bdc117143 (patch) | |
| tree | 19afa4ef3624a007ce709b1e3f93e99a6f585645 /mod/include/cyber_device.h | |
| parent | fd89f87ee3d2721155124954dca4156866001562 (diff) | |
| download | dev-cyber-006399dc8d5983037d1ac5a7b9d81a0bdc117143.tar.xz dev-cyber-006399dc8d5983037d1ac5a7b9d81a0bdc117143.zip | |
mod: restructure module layoutHEADmasterfmorgner/re-layout
Diffstat (limited to 'mod/include/cyber_device.h')
| -rw-r--r-- | mod/include/cyber_device.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/mod/include/cyber_device.h b/mod/include/cyber_device.h index 1da9e37..884b54a 100644 --- a/mod/include/cyber_device.h +++ b/mod/include/cyber_device.h @@ -25,7 +25,7 @@ /** * This structure holds information about the CYBER device */ -extern struct cyber_device +typedef struct { /** * The kernel character device structure @@ -47,16 +47,21 @@ extern struct cyber_device */ dev_t number; -} device; + /** + * Cyber space! + */ + char * space; + +} cyber_device; /** * Initialize the CYBER device */ -int cyber_device_init(void); +int cyber_device_init(cyber_device * device, struct file_operations const * file_ops); /** * Deinitialize the CYBER device */ -void cyber_device_shutdown(void); +void cyber_device_shutdown(cyber_device * device); #endif |
