RPV Event driven kernel
Loading...
Searching...
No Matches
service.h
1#pragma once
2
19struct service_s {
20
28 const char *s_name;
29
46 void (*const svc_main)(void);
47};
48
53typedef struct service_s service_t;
54
93#define _SERVICE(name, service_main) \
94 __attribute__((used, section(".service_table"))) \
95 static const service_t name = { #name, service_main }
Service descriptor structure.
Definition service.h:19
void(*const svc_main)(void)
Service entry function.
Definition service.h:46
const char * s_name
Null-terminated service name string.
Definition service.h:28