xref: /minix3/minix/servers/vfs/request.h (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1 #ifndef __VFS_REQUEST_H__
2 #define __VFS_REQUEST_H__
3 
4 /* Low level request messages are built and sent by wrapper functions.
5  * This file contains the request and response structures for accessing
6  * those wrappers functions.
7  */
8 
9 #include <sys/types.h>
10 
11 /* Structure for response that contains inode details */
12 typedef struct node_details {
13   endpoint_t fs_e;
14   ino_t inode_nr;
15   mode_t fmode;
16   off_t fsize;
17   uid_t uid;
18   gid_t gid;
19 
20   /* For char/block special files */
21   dev_t dev;
22 } node_details_t;
23 
24 /* Structure for a lookup response */
25 typedef struct lookup_res {
26   endpoint_t fs_e;
27   ino_t inode_nr;
28   mode_t fmode;
29   off_t fsize;
30   uid_t uid;
31   gid_t gid;
32   /* For char/block special files */
33   dev_t dev;
34 
35   /* Fields used for handling mount point and symbolic links */
36   int char_processed;
37   unsigned char symloop;
38 } lookup_res_t;
39 
40 
41 #endif
42