Find the answer to your Linux question:
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.
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    2

    Post 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!

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,449
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •