diff options
author | Alex Auvolat <alex@adnab.me> | 2015-03-14 12:56:22 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2015-03-14 12:56:22 +0100 |
commit | dabd2355f355abd7d1d58641f6cc496adb1482d1 (patch) | |
tree | 48f674f68b5ec2314d4dd7735af0db0af3408c49 /src/kernel/include/vfs.h | |
parent | 151edb44eea9bf25ec466133e9dbef87bd6b1372 (diff) | |
download | kogata-dabd2355f355abd7d1d58641f6cc496adb1482d1.tar.gz kogata-dabd2355f355abd7d1d58641f6cc496adb1482d1.zip |
Add mutexes everywhere ; spam debug log (sorry)
Diffstat (limited to 'src/kernel/include/vfs.h')
-rw-r--r-- | src/kernel/include/vfs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel/include/vfs.h b/src/kernel/include/vfs.h index 226f962..8f09d7f 100644 --- a/src/kernel/include/vfs.h +++ b/src/kernel/include/vfs.h @@ -55,6 +55,7 @@ typedef struct fs_handle { struct fs_node *node; int refs; + mutex_t lock; int mode; @@ -125,6 +126,8 @@ typedef struct { typedef struct fs { // Filled by VFS's make_fs() int refs; + mutex_t lock; + struct fs *from_fs; int ok_modes; // Filled by FS's specific make() - all zero in the case of a subfs |