Get the gid from nanos6 task types too

This commit is contained in:
Rodrigo Arias 2023-02-24 16:53:02 +01:00 committed by Rodrigo Arias Mallo
parent 17a0d241f6
commit 34c9f34f04

View File

@ -5,9 +5,10 @@
#define INSTR_NANOS6_H
#include "../instr.h"
#include "compat.h"
static inline void
#include "task.h"
static inline uint32_t
instr_nanos6_type_create(int32_t typeid)
{
struct ovni_ev ev = {0};
@ -26,6 +27,8 @@ instr_nanos6_type_create(int32_t typeid)
nbytes += strlen(p) + 1;
ovni_ev_jumbo_emit(&ev, (uint8_t *) buf, nbytes);
return task_get_type_gid(p);
}
INSTR_2ARG(instr_nanos6_task_create, "6Tc", int32_t, id, uint32_t, typeid)