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 4040#include "syscall_numbers.h"
4141#include "utils.h"
4242
43+ feature_t per_instance_features [63 ] = {
44+ { }
45+ };
46+
4347static bool can_use_pidfd ;
4448static bool can_use_swap ;
4549static 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);
103103extern int rwlock_wrlock_interruptible (pthread_rwlock_t * l );
104104
105105struct 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+
109117 int type ;
110118 char * buf ; /* unused */
111119 int buflen ;
112- int size ; /*actual data size */
120+ int size ; /* actual data size */
113121 int cached ;
114122};
115123
124+ typedef struct feature {
125+ char * name ;
126+ } feature_t ;
127+
128+ extern feature_t per_instance_features [];
129+
116130enum lxcfs_feature_op {
117131 LXCFS_FEATURE_CHECK ,
118132 LXCFS_FEATURE_SET ,
You can’t perform that action at this time.
0 commit comments