diff options
author | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-28 13:14:33 +0100 |
---|---|---|
committer | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-28 13:14:33 +0100 |
commit | 5b5ed23b44ae9eb845ebbac284e0b27822e45ed1 (patch) | |
tree | 431fd793491ea36131b09cd5877c5229f01356ce /ramfs.h | |
parent | 311ddd85042170f35736b9491ce952ee51e21db1 (diff) | |
download | rpi-MMU-example-5b5ed23b44ae9eb845ebbac284e0b27822e45ed1.tar.gz rpi-MMU-example-5b5ed23b44ae9eb845ebbac284e0b27822e45ed1.zip |
add ramfs driver
Diffstat (limited to 'ramfs.h')
-rw-r--r-- | ramfs.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +#ifndef RAMFS_H +#define RAMFS_H + +struct ramfile +{ + char *file_name; + uint32_t file_size; + char *file_contents; +}; + +// search for file named filename in ramfs; +// If found - return 0 and fill buf fields with file's info. +// Otherwise return a non-zero value. +int find_file(void *ramfs, char *filename, struct ramfile *buf); + +#endif // RAMFS_H |