lkml.org 
[lkml]   [2007]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [ckrm-tech] [PATCH 3/6] containers: Add generic multi-subsystem API to containers
    Paul Menage wrote:
    > On 1/11/07, Balbir Singh <balbir@in.ibm.com> wrote:
    >> to 0. To walk the hierarchy, I have no root now since I do not have
    >> any task context. I was wondering if exporting the rootnode or providing
    >> a function to export the rootnode of the mounter hierarchy will make
    >> programming easier.
    >
    > Ah - I misunderstood what you were looking for before.

    I'll try and post the changes to cpu_acct once I get the container system
    working.

    >
    >> Something like
    >>
    >> struct container *get_root_container(struct container_subsys *ss)
    >> {
    >> return &rootnode[ss->hierarchy];
    >> }
    >
    > Yes, something like that sounds fine - except that it would be
    >
    > return &rootnode[ss->hierarchy].top_container;
    >

    Aah! I missed the top_container bit. Do you want me to send you a patch for it?
    It will be nice to have it in the next version.

    > Paul

    --

    Balbir Singh,
    Linux Technology Center,
    IBM Software Labs
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-01-12 10:03    [W:3.772 / U:0.244 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site