aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/include')
-rw-r--r--src/kernel/include/pager.h6
-rw-r--r--src/kernel/include/vfs.h4
2 files changed, 6 insertions, 4 deletions
diff --git a/src/kernel/include/pager.h b/src/kernel/include/pager.h
index 7f93b8c..03e5da4 100644
--- a/src/kernel/include/pager.h
+++ b/src/kernel/include/pager.h
@@ -37,7 +37,7 @@ typedef struct pager {
vfs_pager_ops_t *ops;
} vfs_pager;
struct {
- size_t phys_offset;
+ void* phys_offset;
} device_pager;
};
@@ -51,7 +51,9 @@ typedef struct pager {
pager_t* new_swap_pager(size_t size);
pager_t* new_vfs_pager(size_t size, fs_node_t* vfs_node, vfs_pager_ops_t *vfs_ops);
-pager_t* new_device_pager(size_t size, size_t phys_offset);
+pager_t* new_device_pager(size_t size, void* phys_offset);
+
+void change_device_pager(pager_t *p, size_t new_size, void* new_phys_offset);
void delete_pager(pager_t *p);
diff --git a/src/kernel/include/vfs.h b/src/kernel/include/vfs.h
index 2d50c9a..3d225c5 100644
--- a/src/kernel/include/vfs.h
+++ b/src/kernel/include/vfs.h
@@ -88,11 +88,11 @@ typedef struct fs_node_ops {
void (*close)(fs_handle_t *f);
bool (*stat)(fs_node_ptr n, stat_t *st);
- int (*ioctl)(fs_node_ptr f, int command, void* data);
+ int (*ioctl)(fs_node_ptr n, int command, void* data);
bool (*walk)(fs_node_t *n, const char* file, struct fs_node *node_d);
bool (*delete)(fs_node_ptr n, const char* file);
- bool (*move)(fs_node_ptr dir, const char* old_name, struct fs_node *new_parent, const char *new_name);
+ bool (*move)(fs_node_ptr n, const char* old_name, struct fs_node *new_parent, const char *new_name);
bool (*create)(fs_node_ptr n, const char* name, int type); // create sub-node in directory
void (*dispose)(fs_node_t *n);
} fs_node_ops_t;