[RFC v16][PATCH 39/43] c/r (ipc): export interface from ipc/sem.c to cleanup ipc sem
From: Oren Laadan <hidden>
Date: 2009-05-27 17:43:58
Also in:
linux-mm, lkml
Subsystem:
the rest · Maintainer:
Linus Torvalds
Export freeary() which will be used in the next patch during restart to cleanup an ipc sem. Signed-off-by: Oren Laadan <redacted> --- ipc/sem.c | 3 +-- ipc/util.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ipc/sem.c b/ipc/sem.c
index 207dbbb..c60076e 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c@@ -93,7 +93,6 @@ #define sem_checkid(sma, semid) ipc_checkid(&sma->sem_perm, semid) static int newary(struct ipc_namespace *, struct ipc_params *, int); -static void freeary(struct ipc_namespace *, struct kern_ipc_perm *); #ifdef CONFIG_PROC_FS static int sysvipc_sem_proc_show(struct seq_file *s, void *it); #endif
@@ -521,7 +520,7 @@ static void free_un(struct rcu_head *head) * as a writer and the spinlock for this semaphore set hold. sem_ids.rw_mutex * remains locked on exit. */ -static void freeary(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) +void freeary(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) { struct sem_undo *un, *tu; struct sem_queue *q, *tq;
diff --git a/ipc/util.h b/ipc/util.h
index 2a05fb3..347ffb2 100644
--- a/ipc/util.h
+++ b/ipc/util.h@@ -185,6 +185,7 @@ int ipcget(struct ipc_namespace *ns, struct ipc_ids *ids, extern int do_shmget(key_t key, size_t size, int shmflg, int req_id); extern int do_msgget(key_t key, int msgflg, int req_id); extern void freeque(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp); +extern void freeary(struct ipc_namespace *, struct kern_ipc_perm *); extern void do_shm_rmid(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp);
--
1.6.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-api" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html