Lines Matching defs:mode
128 /** returns a pointer to the port-mode string
130 static const char* procfsGetMode( int mode )
132 if((mode < _PORT_EPP) || (mode > _PORT_ECP))
135 return procfsPortModes[mode];
253 static struct proc_dir_entry *new_entry( const char *name, mode_t mode,
261 if (mode == S_IFDIR)
262 mode |= S_IRUGO | S_IXUGO;
263 else if (mode == 0)
264 mode = S_IFREG | S_IRUGO;
281 ent->mode = mode;
283 if (S_ISDIR(mode)) {
292 if (mode == S_IFDIR)
295 ent = create_proc_entry( name, mode, parent );