Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
reg_file.h
Go to the documentation of this file.
1 
4 #ifndef __REG_FILE_H__
5 #define __REG_FILE_H__
6 
7 #include <fs/fs.h>
8 
9 struct reg_file {
10  off_t pos;
11  struct file file;
12 };
13 
14 int reg_file_init(struct file **files,
15  struct inode *file_inode,
16  struct reg_file *reg_file);
17 ssize_t reg_file_read(struct file *filp, char *buf, size_t size, off_t offset);
18 ssize_t reg_file_write(struct file *filp,
19  const char *buf,
20  size_t size,
21  off_t offset);
22 void reg_file_rewind(struct file *filp);
23 void reg_file_seek_end(struct file *filp);
24 void reg_file_truncate(struct file *filp);
25 
26 #endif
Definition: fs.h:136
Definition: fs.h:97
Definition: reg_file.h:9