File tree 2 files changed +22
-4
lines changed
2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 45
45
#define BASEDIR "/lxcfs/controllers"
46
46
#define ROOTDIR "/lxcfs/root"
47
47
48
+ feature_t per_instance_features [63 ] = {
49
+ { }
50
+ };
51
+
48
52
static bool can_use_pidfd ;
49
53
static bool can_use_swap ;
50
54
static bool can_use_sys_cpu ;
Original file line number Diff line number Diff line change @@ -99,16 +99,30 @@ extern int rwlock_rdlock_interruptible(pthread_rwlock_t *l);
99
99
extern int rwlock_wrlock_interruptible (pthread_rwlock_t * l );
100
100
101
101
struct file_info {
102
- char * controller ;
103
- char * cgroup ;
104
- char * file ;
102
+ union {
103
+ struct {
104
+ char * controller ;
105
+ char * cgroup ;
106
+ char * file ;
107
+ };
108
+ struct {
109
+ void * private_data ;
110
+ };
111
+ };
112
+
105
113
int type ;
106
114
char * buf ; /* unused */
107
115
int buflen ;
108
- int size ; /*actual data size */
116
+ int size ; /* actual data size */
109
117
int cached ;
110
118
};
111
119
120
+ typedef struct feature {
121
+ char * name ;
122
+ } feature_t ;
123
+
124
+ extern feature_t per_instance_features [];
125
+
112
126
enum lxcfs_feature_op {
113
127
LXCFS_FEATURE_CHECK ,
114
128
LXCFS_FEATURE_SET ,
You can’t perform that action at this time.
0 commit comments