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  int 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 
23 #endif
Definition: fs.h:120
Definition: fs.h:82
Definition: reg_file.h:9