diff options
author | Christian Cunningham <cc@localhost> | 2022-02-13 17:13:17 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-02-13 17:13:17 -0700 |
commit | a0d6941b2ef689302dce37d1a864fd4213a0a559 (patch) | |
tree | 10376ed4d35fb6d89a4fb0bb2cb1c4228ddb6d98 /src/util | |
parent | 22b2957d4610f201bd2d365d42de285478093c01 (diff) |
Implement generic lock
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/lock.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util/lock.c b/src/util/lock.c new file mode 100644 index 0000000..2a7d35e --- /dev/null +++ b/src/util/lock.c @@ -0,0 +1,9 @@ +#include <util/lock.h> +#include <lib/kmem.h> + +struct Lock* create_lock(void) +{ + struct Lock* l = (struct Lock*)kmalloc(sizeof(struct Lock)); + l->pid = 0; + return l; +} |