aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/include/ipc.h
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-03-08 14:27:37 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-03-08 14:27:37 +0100
commitad63830f0d841c41291fc01aed6e54726bd0b93f (patch)
tree1b32e052fa52987689963b8a319279fea9a1548c /src/kernel/include/ipc.h
parent845fff4dad1159d3d5b94efaf8e547af8d280a5e (diff)
downloadkogata-ad63830f0d841c41291fc01aed6e54726bd0b93f.tar.gz
kogata-ad63830f0d841c41291fc01aed6e54726bd0b93f.zip
Tokens.
Diffstat (limited to 'src/kernel/include/ipc.h')
-rw-r--r--src/kernel/include/ipc.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/kernel/include/ipc.h b/src/kernel/include/ipc.h
index c61ec93..0feddf2 100644
--- a/src/kernel/include/ipc.h
+++ b/src/kernel/include/ipc.h
@@ -15,7 +15,12 @@ fs_handle_pair_t make_channel(bool blocking);
// ---- Tokens for sharing file descriptors between processes
-token_t gen_token_for(fs_handle_t *h);
-fs_handle_t *use_token(token_t tok);
+#define TOKEN_LIFETIME 1500000 // in usecs
+
+bool gen_token_for(fs_handle_t *h, token_t *tok);
+fs_handle_t *use_token(token_t *tok);
+
+bool token_eq_fun(const void* a, const void* b);
+hash_t token_hash_fun(const void* t);
/* vim: set ts=4 sw=4 tw=0 noet :*/