[PATCH] ipc: add generic struct ipc_ids seq_file iteration
authorMike Waychison <mikew@google.com>
Tue, 6 Sep 2005 22:17:09 +0000 (15:17 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 7 Sep 2005 23:57:25 +0000 (16:57 -0700)
commitae7817745eef3b4ed3c2e36cb403e0c50f17d4e4
treef1824d3eb053123cb359865925ef7e38e3fb37d0
parentf35279d3f713e5c97b98cbdbf47d98f79942c11f
[PATCH] ipc: add generic struct ipc_ids seq_file iteration

The following two patches convert /proc/sysvipc/* to use seq_file.

This gives us the following:

 - Self-consistent IPC records in proc.
 - O(n) reading of the files themselves.

This patch:

Add a generic method for ipc types to be displayed using seq_file.  This
patch abstracts out seq_file iterating over struct ipc_ids into ipc/util.c

Signed-off-by: Mike Waychison <mikew@google.com>
Cc: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
ipc/util.c
ipc/util.h