mirror of
https://github.com/drasko/codezero.git
synced 2026-02-26 16:53:14 +01:00
Added a public domain malloc temporarily.
More changes to fs0, still improvising.
This commit is contained in:
@@ -59,7 +59,7 @@ struct dentry {
|
||||
struct dentry *parent; /* Parent dentry */
|
||||
struct list_head child; /* List of dentries with same parent */
|
||||
struct list_head children; /* List of children dentries */
|
||||
struct list_head dref_list; /* For vnode's dirent reference list */
|
||||
struct list_head vref; /* For vnode's dirent reference list */
|
||||
struct vnode *vnode; /* The vnode associated with dirent */
|
||||
struct dentry_ops ops;
|
||||
};
|
||||
|
||||
7
tasks/fs0/include/malloc.h
Normal file
7
tasks/fs0/include/malloc.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#ifndef __PRIVATE_MALLOC_H__
|
||||
#define __PRIVATE_MALLOC_H__
|
||||
|
||||
void *kmalloc(size_t size);
|
||||
void kfree(void *blk);
|
||||
|
||||
#endif /*__PRIVATE_MALLOC_H__ */
|
||||
Reference in New Issue
Block a user