Re: [-mm][PATCH 1/4] Setup the rlimit controller
From: Li Zefan
Date: Mon May 05 2008 - 21:33:29 EST
Balbir Singh wrote:
> +struct cgroup_subsys rlimit_cgroup_subsys;
> +
> +struct rlimit_cgroup {
> + struct cgroup_subsys_state css;
> + struct res_counter as_res; /* address space counter */
> +};
> +
> +static struct rlimit_cgroup init_rlimit_cgroup;
> +
> +struct rlimit_cgroup *rlimit_cgroup_from_cgrp(struct cgroup *cgrp)
It can be static if I don't miss anything.
> +{
> + return container_of(cgroup_subsys_state(cgrp, rlimit_cgroup_subsys_id),
> + struct rlimit_cgroup, css);
> +}
> +
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/