mirror of
https://github.com/drasko/codezero.git
synced 2026-02-28 09:43:14 +01:00
Finished adding untested bare functionality vfs
Finished adding untested shm syscalls. Finished adding untested l4 send/recv helpers Everything compiles. Now going to fix lots of bugs ;-)
This commit is contained in:
18
tasks/fs0/include/file.h
Normal file
18
tasks/fs0/include/file.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef __FS0_MM_H__
|
||||
#define __FS0_MM_H__
|
||||
|
||||
/*
|
||||
* Describes the in-memory representation of a file. This is used to track
|
||||
* file content, i.e. file pages by mm0, this is a temporary mock up until
|
||||
* fs0 and mm0 are wired together.
|
||||
*/
|
||||
struct vm_file {
|
||||
unsigned long vnum;
|
||||
unsigned long length;
|
||||
|
||||
/* This is the cache of physical pages that this file has in memory. */
|
||||
struct list_head page_cache_list;
|
||||
struct vm_pager *pager;
|
||||
};
|
||||
|
||||
#endif /* __FS0_MM_H__ */
|
||||
Reference in New Issue
Block a user