+
+int generic_recv_pre_select(struct sched *s, struct task *t)
+{
+ struct receiver_node *rn = container_of(t, struct receiver_node, task);
+ int ret = btr_node_status(rn->btrn, 0, BTR_NT_ROOT);
+
+ t->error = 0;
+ if (ret < 0) {
+ s->timeout.tv_sec = 0;
+ s->timeout.tv_usec = 1;
+ }
+ return ret;
+}