| 16 | } |
| 17 | |
| 18 | fs_fd_t* FsNode::Open(size_t flags){ |
| 19 | fs_fd_t* fDesc = (fs_fd_t*)kmalloc(sizeof(fs_fd_t)); |
| 20 | |
| 21 | fDesc->pos = 0; |
| 22 | fDesc->mode = flags; |
| 23 | fDesc->node = this; |
| 24 | |
| 25 | handleCount++; |
| 26 | |
| 27 | return fDesc; |
| 28 | } |
| 29 | |
| 30 | void FsNode::Close(){ |
| 31 | handleCount--; |