92 |
#define DEVFS_PATHLEN 1024 |
#define DEVFS_PATHLEN 1024 |
93 |
/* Never change this otherwise the binary interface will change */ |
/* Never change this otherwise the binary interface will change */ |
94 |
|
|
95 |
struct devfsd_notify_struct |
struct devfsd_notify_struct { |
96 |
{ /* Use native C types to ensure same types in kernel and user space */ |
/* Use native C types to ensure same types in kernel and user space */ |
97 |
unsigned int type; /* DEVFSD_NOTIFY_* value */ |
unsigned int type; /* DEVFSD_NOTIFY_* value */ |
98 |
unsigned int mode; /* Mode of the inode or device entry */ |
unsigned int mode; /* Mode of the inode or device entry */ |
99 |
unsigned int major; /* Major number of device entry */ |
unsigned int major; /* Major number of device entry */ |
151 |
#define AC_RMNEWCOMPAT 10 |
#define AC_RMNEWCOMPAT 10 |
152 |
#define AC_RESTORE 11 |
#define AC_RESTORE 11 |
153 |
|
|
154 |
struct permissions_type |
struct permissions_type { |
|
{ |
|
155 |
mode_t mode; |
mode_t mode; |
156 |
uid_t uid; |
uid_t uid; |
157 |
gid_t gid; |
gid_t gid; |
158 |
}; |
}; |
159 |
|
|
160 |
struct execute_type |
struct execute_type { |
|
{ |
|
161 |
char *argv[MAX_ARGS + 1]; /* argv[0] must always be the programme */ |
char *argv[MAX_ARGS + 1]; /* argv[0] must always be the programme */ |
162 |
}; |
}; |
163 |
|
|
164 |
struct copy_type |
struct copy_type { |
|
{ |
|
165 |
const char *source; |
const char *source; |
166 |
const char *destination; |
const char *destination; |
167 |
}; |
}; |
168 |
|
|
169 |
struct action_type |
struct action_type { |
|
{ |
|
170 |
unsigned int what; |
unsigned int what; |
171 |
unsigned int when; |
unsigned int when; |
172 |
}; |
}; |
173 |
|
|
174 |
struct config_entry_struct |
struct config_entry_struct { |
|
{ |
|
175 |
struct action_type action; |
struct action_type action; |
176 |
regex_t preg; |
regex_t preg; |
177 |
union |
union |
184 |
struct config_entry_struct *next; |
struct config_entry_struct *next; |
185 |
}; |
}; |
186 |
|
|
187 |
struct get_variable_info |
struct get_variable_info { |
|
{ |
|
188 |
const struct devfsd_notify_struct *info; |
const struct devfsd_notify_struct *info; |
189 |
const char *devname; |
const char *devname; |
190 |
char devpath[STRING_LENGTH]; |
char devpath[STRING_LENGTH]; |
1330 |
|
|
1331 |
/* from compat_name.c */ |
/* from compat_name.c */ |
1332 |
|
|
1333 |
struct translate_struct |
struct translate_struct { |
|
{ |
|
1334 |
const char *match; /* The string to match to(up to length) */ |
const char *match; /* The string to match to(up to length) */ |
1335 |
const char *format; /* Format of output, "%s" takes data past match string, |
const char *format; /* Format of output, "%s" takes data past match string, |
1336 |
NULL is effectively "%s"(just more efficient) */ |
NULL is effectively "%s"(just more efficient) */ |