Signed-off-by: Masatake YAMATO <yamato@redhat.com>
case COL_ENDPOINTS: {
struct fifo *this = (struct fifo *)file;
struct list_head *e;
- list_for_each_backwardly(e, &this->endpoint.ipc->endpoints) {
+ foreach_endpoint(e, this->endpoint) {
char *estr;
struct fifo *other = list_entry(e, struct fifo, endpoint.endpoints);
if (this == other)
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);
+#define foreach_endpoint(E,ENDPOINT) list_for_each_backwardly(E, &((ENDPOINT).ipc->endpoints))
/*
* Name managing