Add support for VFS-FS transaction IDs
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
* 0x1100 - 0x11FF USB
|
||||
* 0x1200 - 0x12FF Devman
|
||||
* 0x1300 - 0x13FF TTY Input
|
||||
* 0x1400 - 0x14FF VFS-FS transaction IDs
|
||||
*
|
||||
* Zero and negative values are widely used for OK and error responses.
|
||||
*/
|
||||
@@ -1225,4 +1226,13 @@
|
||||
|
||||
#endif
|
||||
|
||||
/*===========================================================================*
|
||||
* VFS-FS TRANSACTION IDs *
|
||||
*===========================================================================*/
|
||||
|
||||
#define VFS_TRANSACTION_BASE 0x1400
|
||||
|
||||
#define VFS_TRANSID (VFS_TRANSACTION_BASE + 1)
|
||||
#define IS_VFS_FS_TRANSID(type) (((type) & ~0xff) == VFS_TRANSACTION_BASE)
|
||||
|
||||
/* _MINIX_COM_H */
|
||||
|
||||
@@ -113,12 +113,16 @@ typedef struct {
|
||||
#define REQ_NEWNODE (VFS_BASE + 29)
|
||||
#define REQ_RDLINK (VFS_BASE + 30)
|
||||
#define REQ_GETDENTS (VFS_BASE + 31)
|
||||
#define REQ_STATVFS (VFS_BASE + 32)
|
||||
#define REQ_STATVFS (VFS_BASE + 32)
|
||||
|
||||
#define NREQS 33
|
||||
#define NREQS 33
|
||||
|
||||
#define IS_VFS_RQ(type) (((type) & ~0xff) == VFS_BASE)
|
||||
|
||||
#define TRNS_GET_ID(t) ((t) & 0xFFFF)
|
||||
#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)
|
||||
|
||||
Reference in New Issue
Block a user