summaryrefslogtreecommitdiffstats
path: root/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'main.h')
-rw-r--r--main.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.h b/main.h
index e437853..db38aa8 100644
--- a/main.h
+++ b/main.h
@@ -16,7 +16,9 @@ extern char *magicstr;
struct hello_dev {
dev_t devnum;
+ struct semaphore sem;
struct cdev cdev; /* char device */
+
/* for r/w operations */
char hello_buffer[HELLO_KERNEL_BUFF_LEN];
size_t buff_index;