summaryrefslogblamecommitdiff
path: root/Source/Kernel/FileSystems/RamFS/RamFileNode.class.h
blob: d6006304c0d49509489e28303daf6e5d7ead8e58 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                            
                                                                                                         




                                                            
#ifndef DEF_RAMFILENODE_CLASS_H
#define DEF_RAMFILENODE_CLASS_H

#include <VFS/FileNode.class.h>

class RamFileNode : public FileNode {
	friend class RamFS;

	private:
	RamFileNode (String name, FileSystem* fs, FSNode* parent, u32int permissions = 0777,
			u32int uid = 0, u32int gid = 0) :
		FileNode(name, fs, parent, 0, permissions, uid, gid), m_data(0) {}

	u8int *m_data;		//We don't take care of allocation/freeing here, RamFS:: does that for us

	void setLength(u32int length) { m_length = length; }
};

#endif