aboutsummaryrefslogtreecommitdiff
path: root/src/arm/PL1/kernel/ramfs.h
blob: cf4573626c913c6e0c20ddb23e576a75cbde8351 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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