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 @@ -100,16 +100,30 @@ extern int rwlock_rdlock_interruptible(pthread_rwlock_t *l);
100
100
extern int rwlock_wrlock_interruptible (pthread_rwlock_t * l );
101
101
102
102
struct file_info {
103
- char * controller ;
104
- char * cgroup ;
105
- char * file ;
103
+ union {
104
+ struct {
105
+ char * controller ;
106
+ char * cgroup ;
107
+ char * file ;
108
+ };
109
+ struct {
110
+ void * private_data ;
111
+ };
112
+ };
113
+
106
114
int type ;
107
115
char * buf ; /* unused */
108
116
int buflen ;
109
- int size ; /*actual data size */
117
+ int size ; /* actual data size */
110
118
int cached ;
111
119
};
112
120
121
+ typedef struct feature {
122
+ char * name ;
123
+ } feature_t ;
124
+
125
+ extern feature_t per_instance_features [];
126
+
113
127
enum lxcfs_feature_op {
114
128
LXCFS_FEATURE_CHECK ,
115
129
LXCFS_FEATURE_SET ,
You can’t perform that action at this time.
0 commit comments