Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4680 | right-hear | 1 | #ifndef __MENUETOS_IPC_H |
2 | #define __MENUETOS_IPC_H |
||
3 | |||
4 | typedef struct { |
||
5 | volatile unsigned long lock; |
||
6 | unsigned long free_ptr; |
||
7 | char __mem[0]; |
||
8 | } ipc_hdr_t; |
||
9 | |||
10 | typedef struct { |
||
11 | unsigned long sender_pid; |
||
12 | unsigned long msg_length; |
||
13 | char message[0]; |
||
14 | } ipc_msg_t; |
||
15 | |||
16 | ipc_hdr_t * create_ipc(unsigned long size); |
||
17 | void register_ipc_mem(ipc_hdr_t * hdr); |
||
18 | void ipc_send_message(int dst_pid,ipc_msg_t * msg); |
||
19 | extern inline int ipc_messages_avail(ipc_hdr_t * hdr); |
||
20 | |||
21 | #endif |