OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 0/5][V2] Misc helper patches for pid namespaces
Re: [PATCH 4/5] [V2] Define is_global_init() and is_container_init() [message #19422 is a reply to message #19399] Fri, 20 July 2007 22:41 Go to previous messageGo to previous message
akpm is currently offline  akpm
Messages: 224
Registered: March 2007
Senior Member
On Thu, 19 Jul 2007 00:21:58 -0700
sukadev@us.ibm.com wrote:

> --- lx26-22-rc6-mm1a.orig/kernel/pid.c	2007-07-16 12:55:15.000000000 -0700
> +++ lx26-22-rc6-mm1a/kernel/pid.c	2007-07-16 13:10:48.000000000 -0700
> @@ -69,6 +69,13 @@ struct pid_namespace init_pid_ns = {
>  	.last_pid = 0,
>  	.child_reaper = &init_task
>  };
> +EXPORT_SYMBOL(init_pid_ns);
> +
> +int is_global_init(struct task_struct *tsk)
> +{
> +	return tsk == init_pid_ns.child_reaper;
> +}
> +EXPORT_SYMBOL(is_global_init);

I don't immediately see why init_pid_ns was exported to modules.

It would need to be exported if is_global_init() was made static inline in a
header (which seems like a sensible thing to do), but it wasn't.

_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: [RFC][-mm PATCH 3/8] Memory controller accounting setup (v3)
Next Topic: Re: [RFC][-mm PATCH 1/8] Memory controller resource counters (v3)
Goto Forum:
  


Current Time: Fri Aug 16 02:26:08 GMT 2024

Total time taken to generate the page: 0.02850 seconds