Skip to content

(resend) IPC: code rewrite

[email protected] lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8(resend) IPC/semaphores: code factorisationipc/sem.c+31 -302 replies
2/8(resend) IPC/shared memory: introduce shmctl_downipc/shm.c+72 -880 replies
3/8(resend) IPC/message queues: introduce msgctl_downipc/msg.c+89 -730 replies
4/8(resend) IPC/semaphores: move the rwmutex handling inside semctl_downipc/sem.c+13 -110 replies
5/8(resend) IPC/semaphores: remove one unused parameter from semctl_down()ipc/sem.c+3 -30 replies
6/8(resend) IPC: get rid of the use *_setbuf structure.ipc/msg.c ipc/sem.c ipc/shm.c+46 -860 replies
7/8(resend) IPC: introduce ipc_update_perm()ipc/msg.c ipc/sem.c ipc/shm.c +2 more+17 -120 replies
8/8(resend) IPC: consolidate all xxxctl_down() functionsipc/msg.c ipc/sem.c ipc/shm.c +2 more+66 -1191 reply

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchSerge Hallyn
1/8A-b
2/8A-b
3/8A-b
4/8A-b
5/8A-b
6/8A-b
7/8A-b
8/8A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 2.6.24-mm1 0/8] (resend) IPC: code rewrite

Hi Andrew,

This is a resend of the first part of the patchset sent 2 weeks
ago. This is the part about the IPC which (again) proposes to consolidate some part of the existing code.

It does not change the behavior of the existing code, but
improves it in term of readability and maintainability as it consolidates it a little. As there was no objection, I think you can include them in your -mm tree.

The patchset applies on top of "2.6.24-mm1 + previous patches about
IPC" sent the last days (ie Nadia's patches + mine).

For information, here is the global diffstat:

 ipc/msg.c  |  184 +++++++++++++++++++++++--------------------------------------
 ipc/sem.c  |  156 ++++++++++++++++++---------------------------------
 ipc/shm.c  |  176 ++++++++++++++++++----------------------------------------
 ipc/util.c |   64 +++++++++++++++++++++
 ipc/util.h |    3 
 5 files changed, 249 insertions(+), 334 deletions(-)

and the size of the resulting kernel:

- without the patchset:

$ size obj/vmlinux.ori
   text    data     bss     dec     hex filename
1903257  175820  122880 2201957  219965 obj/vmlinux.ori

- with the patchset:

$ size obj/vmlinux
   text    data     bss     dec     hex filename
1902917  175820  122880 2201617  219811 obj/vmlinux
Signature · 1 line
Pierre Peiffer