[lkml]   [2007]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [ckrm-tech] [PATCH 3/6] containers: Add generic multi-subsystem API to containers
    Paul Menage wrote:
    > +/* The set of hierarchies in use. Hierarchy 0 is the "dummy
    > + * container", reserved for the subsystems that are otherwise
    > + * unattached - it never has more than a single container, and all
    > + * tasks are part of that container. */
    > +
    > +static struct containerfs_root rootnode[CONFIG_MAX_CONTAINER_HIERARCHIES];
    > +
    > +/* dummytop is a shorthand for the dummy hierarchy's top container */
    > +#define dummytop (&rootnode[0].top_container)
    > +

    With these changes, is there a generic way to determine the root container
    for the hierarchy the subsystem is in? Calls to ->create() pass the dummytop
    container. It would be useful and is often required to walk the hierarchy
    and know the root of the container hierarchy.

    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
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-01-10 17:43    [W:0.020 / U:1.000 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site