File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 40
40
#include "syscall_numbers.h"
41
41
#include "utils.h"
42
42
43
+ feature_t per_instance_features [63 ] = {
44
+ { }
45
+ };
46
+
43
47
static bool can_use_pidfd ;
44
48
static bool can_use_swap ;
45
49
static bool can_use_sys_cpu ;
Original file line number Diff line number Diff line change @@ -103,16 +103,30 @@ extern int rwlock_rdlock_interruptible(pthread_rwlock_t *l);
103
103
extern int rwlock_wrlock_interruptible (pthread_rwlock_t * l );
104
104
105
105
struct file_info {
106
- char * controller ;
107
- char * cgroup ;
108
- char * file ;
106
+ union {
107
+ struct {
108
+ char * controller ;
109
+ char * cgroup ;
110
+ char * file ;
111
+ };
112
+ struct {
113
+ void * private_data ;
114
+ };
115
+ };
116
+
109
117
int type ;
110
118
char * buf ; /* unused */
111
119
int buflen ;
112
- int size ; /*actual data size */
120
+ int size ; /* actual data size */
113
121
int cached ;
114
122
};
115
123
124
+ typedef struct feature {
125
+ char * name ;
126
+ } feature_t ;
127
+
128
+ extern feature_t per_instance_features [];
129
+
116
130
enum lxcfs_feature_op {
117
131
LXCFS_FEATURE_CHECK ,
118
132
LXCFS_FEATURE_SET ,
You can’t perform that action at this time.
0 commit comments