mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
Now that we have atomic.h, we should convert all of the existing refcounts to use it. Cc: Adrian Hunter <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: David Ahern <[email protected]> Cc: Don Zickus <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
20 lines
373 B
C
20 lines
373 B
C
#ifndef __CGROUP_H__
|
|
#define __CGROUP_H__
|
|
|
|
#include <linux/atomic.h>
|
|
|
|
struct option;
|
|
|
|
struct cgroup_sel {
|
|
char *name;
|
|
int fd;
|
|
atomic_t refcnt;
|
|
};
|
|
|
|
|
|
extern int nr_cgroups; /* number of explicit cgroups defined */
|
|
extern void close_cgroup(struct cgroup_sel *cgrp);
|
|
extern int parse_cgroups(const struct option *opt, const char *str, int unset);
|
|
|
|
#endif /* __CGROUP_H__ */
|