Signed-off-by: Masatake YAMATO <yamato@redhat.com>
struct ipc *ipc;
unsigned int hash;
- INIT_LIST_HEAD(&fifo->endpoint.endpoints);
+ init_endpoint(&fifo->endpoint);
ipc = get_ipc(file);
if (ipc)
goto link;
list_add(&ipc->ipcs, &ipc_table.tables[slot]);
}
+void init_endpoint(struct ipc_endpoint *endpoint)
+{
+ INIT_LIST_HEAD(&endpoint->endpoints);
+}
+
void add_endpoint(struct ipc_endpoint *endpoint, struct ipc *ipc)
{
endpoint->ipc = ipc;
struct ipc *new_ipc(const struct ipc_class *class);
struct ipc *get_ipc(struct file *file);
void add_ipc(struct ipc *ipc, unsigned int hash);
+void init_endpoint(struct ipc_endpoint *endpoint);
void add_endpoint(struct ipc_endpoint *endpoint, struct ipc *ipc);
/*