| cgroup.h (b92efa9abffc4a634cd2e7a0f81f8aa6310d67c9) | cgroup.h (21acb9caa2e30b100e9a1943d995bb99d40f4035) |
|---|---|
| 1#ifndef _LINUX_CGROUP_H 2#define _LINUX_CGROUP_H 3/* 4 * cgroup interface 5 * 6 * Copyright (C) 2003 BULL SA 7 * Copyright (C) 2004-2006 Silicon Graphics, Inc. 8 * --- 328 unchanged lines hidden (view full) --- 337 338int cgroup_path(const struct cgroup *cgrp, char *buf, int buflen); 339 340int cgroup_task_count(const struct cgroup *cgrp); 341 342/* Return true if the cgroup is a descendant of the current cgroup */ 343int cgroup_is_descendant(const struct cgroup *cgrp); 344 | 1#ifndef _LINUX_CGROUP_H 2#define _LINUX_CGROUP_H 3/* 4 * cgroup interface 5 * 6 * Copyright (C) 2003 BULL SA 7 * Copyright (C) 2004-2006 Silicon Graphics, Inc. 8 * --- 328 unchanged lines hidden (view full) --- 337 338int cgroup_path(const struct cgroup *cgrp, char *buf, int buflen); 339 340int cgroup_task_count(const struct cgroup *cgrp); 341 342/* Return true if the cgroup is a descendant of the current cgroup */ 343int cgroup_is_descendant(const struct cgroup *cgrp); 344 |
| 345/* Control Group subsystem type. See Documentation/cgroups.txt for details */ | 345/* 346 * Control Group subsystem type. 347 * See Documentation/cgroups/cgroups.txt for details 348 */ |
| 346 347struct cgroup_subsys { 348 struct cgroup_subsys_state *(*create)(struct cgroup_subsys *ss, 349 struct cgroup *cgrp); 350 void (*pre_destroy)(struct cgroup_subsys *ss, struct cgroup *cgrp); 351 void (*destroy)(struct cgroup_subsys *ss, struct cgroup *cgrp); 352 int (*can_attach)(struct cgroup_subsys *ss, 353 struct cgroup *cgrp, struct task_struct *tsk); --- 108 unchanged lines hidden --- | 349 350struct cgroup_subsys { 351 struct cgroup_subsys_state *(*create)(struct cgroup_subsys *ss, 352 struct cgroup *cgrp); 353 void (*pre_destroy)(struct cgroup_subsys *ss, struct cgroup *cgrp); 354 void (*destroy)(struct cgroup_subsys *ss, struct cgroup *cgrp); 355 int (*can_attach)(struct cgroup_subsys *ss, 356 struct cgroup *cgrp, struct task_struct *tsk); --- 108 unchanged lines hidden --- |