18 |
#ifndef __ipc_port_h |
#ifndef __ipc_port_h |
19 |
#define __ipc_port_h 1 |
#define __ipc_port_h 1 |
20 |
|
|
21 |
|
#include <rtmk/kern-return.h> |
22 |
#include <rtmk/ipc-types.h> |
#include <rtmk/ipc-types.h> |
23 |
#include <rtmk/ipc-port.h> |
#include <rtmk/ipc-port.h> |
24 |
|
|
82 |
struct ipc_mqueue *mqueue; |
struct ipc_mqueue *mqueue; |
83 |
|
|
84 |
/* Queue of threads that are waiting for an arriving message. */ |
/* Queue of threads that are waiting for an arriving message. */ |
85 |
struct ipc_tqueue tqw; |
struct ipc_tqueue waiting_threads; |
86 |
|
|
87 |
/* Queue of threads that are blocked because of the length |
/* Queue of threads that are blocked because of the length |
88 |
of the message queue (the qlimit is reached). */ |
of the message queue (the qlimit is reached). */ |
89 |
struct ipc_tqueue tqb; |
struct ipc_tqueue blocked_threads; |
90 |
|
|
91 |
/* Kernel object that this port represents. */ |
/* Kernel object that this port represents. */ |
92 |
struct ipc_kobject kobject; |
struct ipc_kobject kobject; |
118 |
#define IPC_PORT_VALID(IP) \ |
#define IPC_PORT_VALID(IP) \ |
119 |
((IP) != IPC_PORT_NULL && (IP) != IPC_PORT_DEAD && (IP->active_p)) |
((IP) != IPC_PORT_NULL && (IP) != IPC_PORT_DEAD && (IP->active_p)) |
120 |
|
|
121 |
|
|
122 |
|
/* Initialize ports. */ |
123 |
|
|
124 |
|
extern void ipc_port_init (void); |
125 |
|
|
126 |
|
/* Create a new IPC port. The port is return in PORTP. |
127 |
|
Returns standard kernel return code. */ |
128 |
|
|
129 |
|
extern kern_return_t ipc_port_create (struct ipc_port **portp); |
130 |
|
|
131 |
#endif /* ipc-port.h */ |
#endif /* ipc-port.h */ |
132 |
|
|
133 |
|
|