Results 1 to 2 of 2
in struct nsproxy several namespaces are defined:
utc_namespace
ipc_namespace
mnt_namespace
pid_namespace
user_namespace
net_namespace
Q1: When will a new namespace be needed? (examples preferred)
Q2: in Clone function, one flag is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-12-2009 #1Just Joined!
- Join Date
- Mar 2009
- Posts
- 2
Question about namespace in kernel
in struct nsproxy several namespaces are defined:
utc_namespace
ipc_namespace
mnt_namespace
pid_namespace
user_namespace
net_namespace
Q1: When will a new namespace be needed? (examples preferred)
Q2: in Clone function, one flag is needed to tell the system whether a namespace needs to be created. but there are 5 flag bits but 6 namespaces. (mnt_namespaces doesn't have a flag) Why?
Thanks!
- 04-16-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,232
I'm looking in my kernel sources and don't find these symbols. Which kernel are you working with? In my RHEL kernel, namespace is define as follows:
struct namespace {
atomic_t count;
struct vfsmount * root;
struct list_head list;
wait_queue_head_t poll;
int event;
};
and none of the functions have any flag bits. Are you sure this is in the kernel, and not user-space? FWIW, my system runs a 2.6.18 kernel.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
