diff options
author | Alex Auvolat <alex@adnab.me> | 2015-03-10 16:28:38 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2015-03-10 16:28:38 +0100 |
commit | 0c710141bbb9bd62617d981a3dbaed1b8775fded (patch) | |
tree | 0094294fc5b6182bada5db8e5a64cd3a52e872e2 /src/kernel/user/nullfs.c | |
parent | 48c1c4dcc449d05e9950a861e165f456e0d583a1 (diff) | |
download | kogata-0c710141bbb9bd62617d981a3dbaed1b8775fded.tar.gz kogata-0c710141bbb9bd62617d981a3dbaed1b8775fded.zip |
Add simple shared memory facility to IPC (no syscall yet)
Diffstat (limited to 'src/kernel/user/nullfs.c')
-rw-r--r-- | src/kernel/user/nullfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/user/nullfs.c b/src/kernel/user/nullfs.c index d4f345f..636d7fa 100644 --- a/src/kernel/user/nullfs.c +++ b/src/kernel/user/nullfs.c @@ -204,7 +204,7 @@ bool nullfs_add_ram_file(fs_t *fs, const char* name, const char* data, size_t in nullfs_file_t *f = (nullfs_file_t*)malloc(sizeof(nullfs_file_t)); if (f == 0) return false; - p = new_swap_pager(init_sz); + p = new_swap_pager(init_sz, true); if (p == 0) goto error; f->ok_modes = ok_modes & (FM_MMAP | FM_TRUNC | FM_READ | FM_WRITE); @@ -339,7 +339,7 @@ bool nullfs_d_create(fs_node_ptr n, const char* file, int type) { nullfs_file_t *f = (nullfs_file_t*)malloc(sizeof(nullfs_file_t)); if (f == 0) goto f_error; - p = new_swap_pager(0); + p = new_swap_pager(0, true); if (p == 0) goto f_error; f->ok_modes = FM_READ | FM_WRITE | FM_TRUNC | FM_APPEND; |