Get the gid from nanos6 task types too
This commit is contained in:
parent
17a0d241f6
commit
34c9f34f04
@ -5,9 +5,10 @@
|
|||||||
#define INSTR_NANOS6_H
|
#define INSTR_NANOS6_H
|
||||||
|
|
||||||
#include "../instr.h"
|
#include "../instr.h"
|
||||||
#include "compat.h"
|
|
||||||
|
|
||||||
static inline void
|
#include "task.h"
|
||||||
|
|
||||||
|
static inline uint32_t
|
||||||
instr_nanos6_type_create(int32_t typeid)
|
instr_nanos6_type_create(int32_t typeid)
|
||||||
{
|
{
|
||||||
struct ovni_ev ev = {0};
|
struct ovni_ev ev = {0};
|
||||||
@ -26,6 +27,8 @@ instr_nanos6_type_create(int32_t typeid)
|
|||||||
nbytes += strlen(p) + 1;
|
nbytes += strlen(p) + 1;
|
||||||
|
|
||||||
ovni_ev_jumbo_emit(&ev, (uint8_t *) buf, nbytes);
|
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)
|
INSTR_2ARG(instr_nanos6_task_create, "6Tc", int32_t, id, uint32_t, typeid)
|
||||||
|
Loading…
Reference in New Issue
Block a user