Lines Matching refs:open_file
96 struct open_file;
108 int (*fo_open)(const char *path, struct open_file *f);
109 int (*fo_close)(struct open_file *f);
110 int (*fo_read)(struct open_file *f, void *buf,
112 int (*fo_write)(struct open_file *f, const void *buf,
114 off_t (*fo_seek)(struct open_file *f, off_t offset, int where);
115 int (*fo_stat)(struct open_file *f, struct stat *sb);
116 int (*fo_readdir)(struct open_file *f, struct dirent *d);
149 int (*dv_open)(struct open_file *f, ...);
150 int (*dv_close)(struct open_file *f);
151 int (*dv_ioctl)(struct open_file *f, ulong_t cmd, void *data);
174 struct open_file { struct
185 TAILQ_ENTRY(open_file) f_link; /* next entry */ argument
189 typedef TAILQ_HEAD(file_list, open_file) file_list_t;
191 extern struct open_file *fd2open_file(int);
386 extern int noioctl(struct open_file *, ulong_t, void *);
389 extern int null_open(const char *, struct open_file *);
390 extern int null_close(struct open_file *);
391 extern int null_read(struct open_file *, void *, size_t, size_t *);
392 extern int null_write(struct open_file *, const void *, size_t, size_t *);
393 extern off_t null_seek(struct open_file *, off_t, int);
394 extern int null_stat(struct open_file *, struct stat *);
395 extern int null_readdir(struct open_file *, struct dirent *);
406 extern int devopen(struct open_file *, const char *, const char **);
407 extern int devclose(struct open_file *f);