summaryrefslogtreecommitdiffstats
path: root/main.h
diff options
context:
space:
mode:
authorKyle K <kylek389@gmail.com>2012-12-25 21:51:47 -0600
committerKyle Kaminski <kyle@kkaminsk.com>2012-12-25 21:51:47 -0600
commit3207df143a96c86e406c3c9dc1990a0642b9f98e (patch)
tree342c1d3db38db0ca4e23861439d35293543c2a28 /main.h
parent80de1a348c74768af790d1821097e5a386af53a9 (diff)
downloadkernelhello-3207df143a96c86e406c3c9dc1990a0642b9f98e.tar.gz
kernelhello-3207df143a96c86e406c3c9dc1990a0642b9f98e.tar.bz2
kernelhello-3207df143a96c86e406c3c9dc1990a0642b9f98e.zip
implement write, use semaphores
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;