Make PFS backcalls regular VFS calls
- prefix them with VFS_ as they are going to VFS; - give these calls normal call numbers; - give them their own set of message field aliases; - also make do_mapdriver a regular call. Change-Id: I2140439f288b06d699a1f65438bd8306509b259e
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#define NCALLS 124 /* number of system calls allowed */
|
||||
#define NCALLS 130 /* number of system calls allowed */
|
||||
|
||||
/* In case it isn't obvious enough: this list is sorted numerically. */
|
||||
#define EXIT 1
|
||||
@@ -110,3 +110,10 @@
|
||||
|
||||
#define MAPDRIVER 122 /* to VFS, map a device */
|
||||
#define GETRUSAGE 123 /* to PM, VFS */
|
||||
|
||||
#define VFS_PFS_CHECK_PERMS 124 /* to VFS */
|
||||
#define VFS_PFS_VERIFY_FD 125 /* to VFS */
|
||||
#define VFS_PFS_SET_FILP 126 /* to VFS */
|
||||
#define VFS_PFS_COPY_FILP 127 /* to VFS */
|
||||
#define VFS_PFS_PUT_FILP 128 /* to VFS */
|
||||
#define VFS_PFS_CANCEL_FD 129 /* to VFS */
|
||||
|
||||
@@ -934,6 +934,13 @@
|
||||
#define VFS_IOCTL_REQ m2_i3
|
||||
#define VFS_IOCTL_ARG m2_p1
|
||||
|
||||
/* Field names for the PFS backcalls to VFS. */
|
||||
#define VFS_PFS_ENDPT m2_i1
|
||||
#define VFS_PFS_GRANT m2_i2
|
||||
#define VFS_PFS_COUNT m2_i3
|
||||
#define VFS_PFS_FD m2_i3
|
||||
#define VFS_PFS_FILP m2_p1
|
||||
|
||||
/*===========================================================================*
|
||||
* Messages for VM server *
|
||||
*===========================================================================*/
|
||||
|
||||
@@ -137,19 +137,5 @@ typedef u32_t pino_t; /* Protocol version of ino_t */
|
||||
#define TRNS_ADD_ID(t,id) (((t) << 16) | ((id) & 0xFFFF))
|
||||
#define TRNS_DEL_ID(t) ((short)((t) >> 16))
|
||||
|
||||
#define PFS_BASE (VFS_BASE + 100)
|
||||
|
||||
#define PFS_REQ_CHECK_PERMS (PFS_BASE + 1)
|
||||
#define PFS_REQ_VERIFY_FD (PFS_BASE + 2)
|
||||
#define PFS_REQ_SET_FILP (PFS_BASE + 3)
|
||||
#define PFS_REQ_COPY_FILP (PFS_BASE + 4)
|
||||
#define PFS_REQ_PUT_FILP (PFS_BASE + 5)
|
||||
#define PFS_REQ_CANCEL_FD (PFS_BASE + 6)
|
||||
|
||||
#define PFS_NREQS 7
|
||||
|
||||
#define IS_PFS_VFS_RQ(type) (type >= PFS_BASE && \
|
||||
type < (PFS_BASE + PFS_NREQS))
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user