add get/put support in xsegbd_dev
[archipelago] / xseg / peers / user / mt-vlmcd.c
index 4fec96d..4c32209 100644 (file)
@@ -4,6 +4,8 @@
 #include <xseg/xseg.h>
 #include <xseg/protocol.h>
 #include <mpeer.h>
+#include <sched.h>
+#include <sys/syscall.h>
 
 enum io_state_enum {
        ACCEPTED = 0,
@@ -359,5 +361,8 @@ int custom_peer_init(struct peerd *peer, int argc, char *argv[])
                }
        }
 
+       const struct sched_param param = { .sched_priority = 99 };
+       sched_setscheduler(syscall(SYS_gettid), SCHED_FIFO, &param);
+
        return 0;
 }