提交 55d2313f 编写于 作者: C Christopher Tom

Update en/readme/liteipc_driver.md for LiteIPC storage optimization,...

Update en/readme/liteipc_driver.md for LiteIPC storage optimization, correction for LiteIpcPoolReInit.

Change-Id: I576539c5152ee01f8ed633c6caf77005e4c9a4da
Signed-off-by: NChristopher Tom <cctom@hawaiiantel.net>
上级 488d304d
...@@ -87,10 +87,9 @@ The `IPC_CMS_CMD` request provides various service related utility functions to ...@@ -87,10 +87,9 @@ The `IPC_CMS_CMD` request provides various service related utility functions to
LiteIPC includes utility functions for the kernel to manage the IPC system. LiteIPC includes utility functions for the kernel to manage the IPC system.
`OsLiteIpcInit` initializes the IPC system and must be called before it can be used. `OsLiteIpcInit` initializes the IPC system and must be called before it can be used.
`LiteIpcPoolInit` performs basic initialization of a ProcIpcInfo. Called by the kernel on task creation to initialize the IPC variables in the task's control block. `LiteIpcPoolReInit` creates and initializes the process control block IPC variables for a child process from its parent's process. Called by the kernel on the creation of child processes for basic initialization.
`LiteIpcPoolReInit` initializes the IPC variables of a child task from it's parent's task. Called by the kernel on the creation of child tasks for basic initialization. `LiteIpcPoolDestroy` removes a process' IPC memory pool allocated by memory mapping and all the process' access rights. Also responsible for freeing memory, used for per-process IPC variables, which the system dynamically allocates the first time a process opens `LITEIPC_DRIVER`. Called by the kernel on process deletion for automatic memory and IPC resource management.
`LiteIpcPoolDelete` removes a process' IPC memory pool allocated by memory mapping and all the process' access rights. Called by the kernel on process deletion for automatic memory and IPC resource management. `LiteIpcRemoveServiceHandle` deregisters a service, clearing out the service task's message list and the list of processes with access rights to the service and sending death notification messages to any services with a set IPC task which had access. Death notification messages are only sent once, if there is an error in the send (**ENOMEM**) the recipient will not get the death notification. Death notification messages set target.token to the sevice handle of the service which terminated. Also responsible for freeing memory, used for per-task IPC variables, which the system dynamically allocates the first time a task sends a valid message or initiates a request including **RECV**. Called by the kernel on task deletion for automatic IPC resource management.
`LiteIpcRemoveServiceHandle` deregisters a service, clearing out the service task's message list and the list of processes with access rights to the service and sending death notification messages to any services with a set IPC task which had access. Death notification messages are only sent once, if there is an error in the send (**ENOMEM**) the recipient will not get the death notification. Death notification messages set target.token to the sevice handle of the service which terminated. Called by the kernel on task deletion for automatic IPC resource management.
### Sample code ### Sample code
1. Initialization before we can use LiteIPC. 1. Initialization before we can use LiteIPC.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册