diff options
author | Omar Rizwan <omar.rizwan@gmail.com> | 2019-02-25 19:57:07 -0800 |
---|---|---|
committer | Omar Rizwan <omar.rizwan@gmail.com> | 2019-02-25 19:57:07 -0800 |
commit | cca53bc19952feb02fb01207f636bd66d5f2c8d2 (patch) | |
tree | 6f7301cba993d8332be9930dab1cc2df2ce61b12 /fs/common.c | |
parent | a8ce61d9a1b987d18f5deabba0565465be8d4a3a (diff) | |
download | TabFS-cca53bc19952feb02fb01207f636bd66d5f2c8d2.tar.gz TabFS-cca53bc19952feb02fb01207f636bd66d5f2c8d2.zip |
fs: Some comments.
Diffstat (limited to 'fs/common.c')
-rw-r--r-- | fs/common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/common.c b/fs/common.c index 7281147..c2bf3dd 100644 --- a/fs/common.c +++ b/fs/common.c @@ -16,6 +16,10 @@ void common_init() { if (pipe(ws_to_tabfs)) exit(1); } +// FIXME: we probably need memory fences here?? especially on +// non-x86?? idk +// see https://stackoverflow.com/questions/35837539/does-the-use-of-an-anonymous-pipe-introduce-a-memory-barrier-for-interthread-com + void common_send_tabfs_to_ws(char *request_data) { write(tabfs_to_ws[1], &request_data, sizeof(request_data)); } |