public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH 0/2] New API to change the IDs of an existing IPC
@ 2007-09-28 14:58 Pierre Peiffer
  2007-09-30  6:30 ` Michael Kerrisk
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre Peiffer @ 2007-09-28 14:58 UTC (permalink / raw)
  To: linux-kernel; +Cc: containers

Hi,

	As I'm seeing some discussion/interest about IPC, I would like to propose these patches, which provide an easy way to change the ID of an exiting IPC.
This work is done around the checkpoint/restart of applications. In the case of the IPCs, we need (among others) this functionality.

May be there is some other interest about this, so, the RFC concerns both the coding and the interest.

The first patch provide the functionality in kernel side, the second export it in user space. They apply on top of the latest -rc8 kernel. I can adapt them for the latest -mm.

Thanks,

-- 
Pierre

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC][PATCH 0/2] New API to change the IDs of an existing IPC
  2007-09-28 14:58 [RFC][PATCH 0/2] New API to change the IDs of an existing IPC Pierre Peiffer
@ 2007-09-30  6:30 ` Michael Kerrisk
  2007-10-01  7:19   ` Pierre Peiffer
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Kerrisk @ 2007-09-30  6:30 UTC (permalink / raw)
  To: Pierre Peiffer; +Cc: linux-kernel, containers, mtk-manpages

Hi Pierre,

>         As I'm seeing some discussion/interest about IPC, I would like to propose
>  these patches, which provide an easy way to change the ID of an exiting IPC.
> This work is done around the checkpoint/restart of applications. In the case of
> the IPCs, we need (among others) this functionality.

Can you give some more detailed explanation of why this
functionaility is needed.  (Maybe this was explained in other threads,
but if so I've missed it.)

Cheers,

Michael

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC][PATCH 0/2] New API to change the IDs of an existing IPC
  2007-09-30  6:30 ` Michael Kerrisk
@ 2007-10-01  7:19   ` Pierre Peiffer
  0 siblings, 0 replies; 3+ messages in thread
From: Pierre Peiffer @ 2007-10-01  7:19 UTC (permalink / raw)
  To: Michael Kerrisk; +Cc: linux-kernel, containers, mtk-manpages



Michael Kerrisk a écrit :
> Hi Pierre,
> 
>>         As I'm seeing some discussion/interest about IPC, I would like to propose
>>  these patches, which provide an easy way to change the ID of an exiting IPC.
>> This work is done around the checkpoint/restart of applications. In the case of
>> the IPCs, we need (among others) this functionality.
> 
> Can you give some more detailed explanation of why this
> functionaility is needed.  

Sure; in the case of the checkpoint/restart, when you restart an application, what you want is to recreate all system ressources with the same properties they had, when you have checkpointed it.
For IPCs, this means that you need to recreate all the IPCs with the same IDs (at least).
For now, this ID is computed by the system when an IPC is created and you can't specify or modify it.

These patches give you the possibility of changing this ID once the IPC is created.

-- 
Pierre Peiffer

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-01  7:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-28 14:58 [RFC][PATCH 0/2] New API to change the IDs of an existing IPC Pierre Peiffer
2007-09-30  6:30 ` Michael Kerrisk
2007-10-01  7:19   ` Pierre Peiffer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox