Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Post Question about namespace in kernel

    in struct nsproxy several namespaces are defined:

    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?


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