!485 调整IPC_MSG_DATA_SZ_MAX保持与用户态的IPC_IO_DATA_MAX约束一致

Merge pull request !485 from Caoruihong/liteipc_datasize
This commit is contained in:
openharmony_ci 2021-08-03 03:08:49 +00:00 committed by Gitee
commit 9b4fd13c3c
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@
#define USE_TASKID_AS_HANDLE YES
#define USE_MMAP YES
#define IPC_MSG_DATA_SZ_MAX 1024
#define IPC_IO_DATA_MAX 8192UL
#define IPC_MSG_DATA_SZ_MAX (IPC_IO_DATA_MAX * sizeof(SpecialObj) / (sizeof(SpecialObj) + sizeof(size_t)))
#define IPC_MSG_OBJECT_NUM_MAX (IPC_MSG_DATA_SZ_MAX / sizeof(SpecialObj))
#define LITE_IPC_POOL_NAME "liteipc"