Lines Matching defs:file_ops
94 struct file_ops { struct
95 int (*open)(inode_t *node, file_t *fp);
96 int (*close)(file_t *fp);
97 ssize_t (*read)(file_t *fp, void *buf, size_t nbytes);
98 ssize_t (*write)(file_t *fp, const void *buf, size_t nbytes);
99 int (*ioctl)(file_t *fp, int cmd, unsigned long arg);
100 int (*poll)(file_t *fp, int flag, poll_notify_t notify, void *fd, void *arg);
101 uint32_t (*lseek)(file_t *fp, int64_t off, int32_t whence);
102 int (*stat)(file_t *fp, const char *path, struct aos_stat *st);
103 void* (*mmap)(file_t *fp, size_t len);
104 int (*access)(file_t *fp, const char *path, int amode);