FreeNOS
FileSystemMessage.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009 Niek Linnenbank
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef __FILESYSTEM_FILE_SYSTEM_MESSAGE_H
19 #define __FILESYSTEM_FILE_SYSTEM_MESSAGE_H
20 
21 #include <Types.h>
22 #include <Timer.h>
23 #include "ChannelMessage.h"
24 #include "FileSystem.h"
25 
37 typedef struct FileSystemMessage : public ChannelMessage
38 {
41  char *buffer;
49 }
51 
57 #endif /* __FILESYSTEM_FILE_SYSTEM_MESSAGE_H */
FileSystem.h
Types.h
FileSystemMessage::buffer
char * buffer
Points to a buffer for I/O.
Definition: FileSystemMessage.h:41
FileSystemMessage::stat
FileSystem::FileStat * stat
File Statistics.
Definition: FileSystemMessage.h:45
ProcessID
u32 ProcessID
Process Identification Number.
Definition: Types.h:140
FileSystemMessage
FileSystem IPC message.
Definition: FileSystemMessage.h:37
FileSystemMessage::offset
Size offset
Offset in the file for I/O.
Definition: FileSystemMessage.h:43
Timer::Info
Timer information structure.
Definition: Timer.h:42
FileSystemMessage::result
FileSystem::Result result
Result code.
Definition: FileSystemMessage.h:40
FileSystemMessage
FileSystemMessage FileSystemMessage
FileSystem IPC message.
FileSystemMessage::inode
u32 inode
Inode number of the file.
Definition: FileSystemMessage.h:44
Timer.h
ChannelMessage.h
u32
unsigned int u32
Unsigned 32-bit number.
Definition: Types.h:53
Size
unsigned int Size
Any sane size indicator cannot go negative.
Definition: Types.h:128
FileSystem::FileStat
Contains file information.
Definition: FileSystem.h:113
FileSystem::Result
Result
Result code for filesystem Actions.
Definition: FileSystem.h:52
FileSystemMessage::pathMountLength
Size pathMountLength
Length of the mounted path (used for redirection)
Definition: FileSystemMessage.h:48
FileSystemMessage::pid
ProcessID pid
Process identifier (used for redirection)
Definition: FileSystemMessage.h:47
FileSystemMessage::action
FileSystem::Action action
Action to perform.
Definition: FileSystemMessage.h:39
FileSystem::Action
Action
Actions which may be performed on a filesystem.
Definition: FileSystem.h:36
FileSystemMessage::timeout
Timer::Info timeout
Timeout value for the action.
Definition: FileSystemMessage.h:46
ChannelMessage
Basic message format for sending on a Channel.
Definition: ChannelMessage.h:34
FileSystemMessage::size
Size size
Size of the buffer.
Definition: FileSystemMessage.h:42