/ohos5.0/docs/zh-cn/application-dev/reference/apis-ipc-kit/ |
H A D | _o_h_i_p_c_skeleton.md | 6 提供IPC框架tokenId、凭据、PID/UID、线程池配置等功能C接口。 8 **系统能力:** SystemCapability.Communication.IPC.Core 52 获取调用方进程ID.该接口需要在IPC上下文中调用,否则返当前进程ID。 54 **系统能力:** SystemCapability.Communication.IPC.Core 71 获取调用方TokenId.该接口需要在IPC上下文中调用,否则返回自身TokenId。 90 获取调用方用户ID.该接口需要在IPC上下文中调用,否则返当前用户ID。 147 是否正在处理IPC请求。 155 正在处理IPC请求,返回1;否则,返回0。 185 当前线程加入IPC工作线程池。 233 恢复调用方凭证信息至IPC上下文中。 [all …]
|
H A D | _o_h_i_p_c_parcel.md | 6 提供IPC序列化/反序列化C接口。 8 **系统能力:** SystemCapability.Communication.IPC.Core 20 | [ipc_cparcel.h](ipc__cparcel_8h.md) | 提供IPC序列化/反序列化C接口。 | 83 **系统能力:** SystemCapability.Communication.IPC.Core 111 **系统能力:** SystemCapability.Communication.IPC.Core 141 **系统能力:** SystemCapability.Communication.IPC.Core 160 **系统能力:** SystemCapability.Communication.IPC.Core 181 **系统能力:** SystemCapability.Communication.IPC.Core 206 **系统能力:** SystemCapability.Communication.IPC.Core 231 **系统能力:** SystemCapability.Communication.IPC.Core [all …]
|
H A D | _o_h_i_p_c_remote_object.md | 8 **系统能力:** SystemCapability.Communication.IPC.Core 76 **系统能力:** SystemCapability.Communication.IPC.Core 97 **系统能力:** SystemCapability.Communication.IPC.Core 118 **系统能力:** SystemCapability.Communication.IPC.Core 139 **系统能力:** SystemCapability.Communication.IPC.Core 172 IPC请求模式定义 195 **系统能力:** SystemCapability.Communication.IPC.Core 222 **系统能力:** SystemCapability.Communication.IPC.Core 243 **系统能力:** SystemCapability.Communication.IPC.Core 383 IPC消息发送函数。 [all …]
|
H A D | ipc__cskeleton_8h.md | 6 提供IPC框架tokenId、凭据、PID/UID、线程池配置等功能C接口。 10 **系统能力:** SystemCapability.Communication.IPC.Core 24 …_JoinWorkThread](_o_h_i_p_c_skeleton.md#oh_ipcskeleton_joinworkthread) (void) | 当前线程加入IPC工作线程池。 | 25 …_StopWorkThread](_o_h_i_p_c_skeleton.md#oh_ipcskeleton_stopworkthread) (void) | 当前线程退出IPC工作线程池。 | 26 …_skeleton.md#oh_ipcskeleton_getcallingtokenid) (void) | 获取调用方TokenId.该接口需要在IPC上下文中调用,否则返回自身TokenId… 29 …h_i_p_c_skeleton.md#oh_ipcskeleton_getcallingpid) (void) | 获取调用方进程ID.该接口需要在IPC上下文中调用,否则返当前进程ID。 | 30 …h_i_p_c_skeleton.md#oh_ipcskeleton_getcallinguid) (void) | 获取调用方用户ID.该接口需要在IPC上下文中调用,否则返当前用户ID。 | 34 …p_c_skeleton.md#oh_ipcskeleton_setcallingidentity) (const char \*identity) | 恢复调用方凭证信息至IPC上下文中。 | 35 …Transaction](_o_h_i_p_c_skeleton.md#oh_ipcskeleton_ishandlingtransaction) (void) | 是否正在处理IPC请求。 |
|
H A D | _o_h_i_p_c_error_code.md | 6 提供IPC错误码定义。 8 **系统能力:** SystemCapability.Communication.IPC.Core 20 | [ipc_error_code.h](ipc__error__code_8h.md) | 提供IPC错误码定义。 | 27 …OH_IPC_USER_ERROR_CODE_MIN = 1909000,<br/>OH_IPC_USER_ERROR_CODE_MAX = 1909999<br/>} | IPC错误码定义。 | 41 IPC错误码定义。 56 | OH_IPC_INNER_ERROR | IPC内部错误。 |
|
/ohos5.0/docs/zh-cn/device-dev/kernel/ |
H A D | kernel-small-bundles-ipc.md | 6 LiteIPC是OpenHarmony LiteOS-A内核提供的一种新型IPC(Inter-Process Communication,即进程间通信)机制,不同于传统的System V IPC机制… 14 - 二是负责管理Service的访问权限(只有有权限的任务(Task)可以向对应的Service发送IPC消息)。 19 首先将需要接收IPC消息的任务通过ServiceManager注册成为一个Service,然后通过ServiceManager为该Service任务配置访问权限,即指定哪些任务可以向该Service… 21 LiteIPC的核心思想就是在内核态为每个Service任务维护一个IPC消息队列,该消息队列通过LiteIPC设备文件向上层用户态程序分别提供代表收取IPC消息的读操作和代表发送IPC消息的写操作。 34 | IPC消息内存池 | - LiteIpcPoolInit:初始化进程的IPC消息内存池<br/>- LiteIpcPoolReInit:重新初始化进程的IPC消息内存池<br…
|
H A D | kernel-small-bundles-container.md | 7 LiteOS-A内核容器隔离功能包含7个容器:UTS容器、PID容器、Mount容器、Network容器、TIME容器、IPC容器、User容器。通过所在进程ProcessCB的Container和… 18 | 6 | IPC | CLONE_NEWIPC | 进程间通信资源 |struct Container | 129 #### **IPC容器** 131 用于隔离进程间通信对象(IPC对象),包括消息队列和共享内存。 133 每一个进程对应有一个自己的IPC Container,用来隔离如下全局资源:消息队列、共享内存。 137 - 消息队列隔离:把用于消息队列的全局变量结构LosQueueCB修改为IPC Container中的局部变量保存,从而实现在各自进程中的容器内可见,达到相互隔离的效果。 139 - 共享内存隔离:把用于共享内存的全局变量shmInfo,sysvShmMux,shmSegs,shmUsedPageCount修改为IPC Container中的局部变量保存,从而实现在各自进程中… 145 在系统初始化时,需要为初始进程(0号、1号、2号进程)创建同一个根容器,根容器类型包括所有7种类型:UTS容器、PID容器、User容器、Network容器、Mount容器、TIME容器、IPC容器。 155 通过 unshare接口,将当前进程脱离当前所属容器,并转移到一个新建的容器。以IPC容器为例。 302 | CLONE_NEWIPC | 为子进程新建IPC容器 | 将当前进程转移到指定IPC容器 | 为本进程新建IPC容器 | [all …]
|
/ohos5.0/docs/zh-cn/application-dev/ipc/ |
H A D | ipc-rpc-overview.md | 1 # IPC Kit简介 6 IPC:设备内的进程间通信(Inter-Process Communication)<br/> 8 IPC/RPC用于实现跨进程通信,不同的是前者使用Binder驱动,用于设备内的跨进程通信,后者使用软总线驱动,用于跨设备跨进程通信。需要跨进程通信的原因是因为每个进程都有自己独立的资源和内存空间,… 11 > Stage模型不能直接使用本文介绍的IPC和RPC,以下为IPC与RPC的典型使用场景: 12 >- IPC典型使用场景在后台服务,应用的后台服务通过IPC机制提供跨进程的服务调用能力。 21 > 在IPC Kit中也经常用Proxy表示服务请求方(客户端-Client),Stub表示服务提供方(服务端-Server),后续文档中对Proxy和Stub不再做过多描述。 23 IPC和RPC通常采用客户端-服务端(Client-Server)模型,在使用时,请求Client端进程可获取Server端所在进程的代理(Proxy),并通过此代理读写数据来实现进程间的数据通信,… 26 …ent要和某个具体的SA通信,必须先从SAMgr中获取该SA的代理Proxy对象,然后使用代理Proxy对象和SA通信。在整个通信过程中,如果使用的是IPC通信,则依赖的是Binder驱动,使用的… 28 
|
H A D | Readme-CN.md | 1 # IPC Kit(进程间通信服务) 3 - [IPC Kit简介](ipc-rpc-overview.md) 4 - [IPC与RPC通信开发指导](ipc-rpc-development-guideline.md) 6 - [IPC通信开发指导(C/C++)](ipc-capi-development-guideline.md)
|
/ohos5.0/docs/zh-cn/device-dev/subsystems/ |
H A D | subsys-security-communicationverify.md | 1 # IPC通信鉴权开发指导 6 系统服务通过IPC跨进程方式开放的接口,需要对接口调用者进行鉴权操作。在Samgr中注册的系统服务,可以通过进程间通信的方式暴露接口给其他进程访问,同时需要配置相应的访问策略,当其他进程访问这些接口… 8 当开发一个系统服务时,如果需要对外开放某些接口,开发者可以通过IPC通信鉴权组件配置这些接口的访问策略。当其他服务通过IPC方式访问这些接口时,会触发Samgr服务调用IPC通信鉴权组件的接口检查调… 13 IPC通信鉴权提供的API,仅供Samgr调用,开发者在开发服务时需要配置对应的访问策略,Samgr会调用如下接口获取和检查调用者是否具有正确的访问权限,提供的API列表如下。 15 **表1** IPC通信鉴权API接口功能介绍 25 本部分以BMS服务通过IPC通信方式对外开放接口为例,讲解如何通过IPC通信鉴权组件配置对应接口的访问策略。这里BMS在Samgr中注册的service为bundlems,为开放的接口注册的Feat… 102 完成以上开发步骤后,开发者在Samgr注册服务时,Samgr会调用IPC通信鉴权组件的GetCommunicationStrategy接口获取服务的访问策略;当其他服务或应用通过IPC方式访问这些服… 114 服务注册过程中,Samgr需要从IPC通信鉴权模块获取该服务的访问策略,但是未在该模块配置该服务的UID。
|
/ohos5.0/docs/en/application-dev/reference/apis-ipc-kit/ |
H A D | _o_h_i_p_c_skeleton.md | 8 **System capability**: SystemCapability.Communication.IPC.Core 54 **System capability**: SystemCapability.Communication.IPC.Core 73 **System capability**: SystemCapability.Communication.IPC.Core 92 **System capability**: SystemCapability.Communication.IPC.Core 111 **System capability**: SystemCapability.Communication.IPC.Core 130 **System capability**: SystemCapability.Communication.IPC.Core 147 Checks whether an IPC request is being handled. 149 **System capability**: SystemCapability.Communication.IPC.Core 168 **System capability**: SystemCapability.Communication.IPC.Core 185 Joints this thread to the IPC worker thread pool. [all …]
|
H A D | ipc__cskeleton_8h.md | 6 … token IDs, credentials, process IDs (PIDs), user IDs (UIDs), and thread pool in the IPC framework. 10 **System capability**: SystemCapability.Communication.IPC.Core 24 …leton.md#oh_ipcskeleton_joinworkthread) (void) | Joints this thread to the IPC worker thread pool.… 26 … | Obtains the token ID of the caller. This function must be called in the IPC context. Otherwise,… 29 …void) | Obtains the PID of the caller. This function must be called in the IPC context. Otherwise,… 30 …void) | Obtains the UID of the caller. This function must be called in the IPC context. Otherwise,… 34 …ngidentity) (const char \*identity) | Sets the caller credential information to the IPC context. | 35 …eleton.md#oh_ipcskeleton_ishandlingtransaction) (void) | Checks whether an IPC request is being ha…
|
H A D | _o_h_i_p_c_error_code.md | 6 Defines the IPC result codes. 8 **System capability**: SystemCapability.Communication.IPC.Core 20 | [ipc_error_code.h](ipc__error__code_8h.md) | Defines the IPC result codes.| 27 …DE_MIN = 1909000,<br>OH_IPC_USER_ERROR_CODE_MAX = 1909999<br>} | Enumerates the IPC result codes.| 41 Enumerates the IPC result codes. 56 | OH_IPC_INNER_ERROR | IPC internal error.|
|
H A D | _i_p_c_kit.md | 1 # IPC Kit 6 Provides an entry to the IPC header files for you to reference. 8 **System capability**: SystemCapability.Communication.IPC.Core 20 | [ipc_kit.h](ipc__kit_8h.md) | Provides an entry to the IPC header files for you to reference. |
|
H A D | _o_h_i_p_c_remote_object.md | 8 **System capability**: SystemCapability.Communication.IPC.Core 76 **System capability**: SystemCapability.Communication.IPC.Core 97 **System capability**: SystemCapability.Communication.IPC.Core 118 **System capability**: SystemCapability.Communication.IPC.Core 139 **System capability**: SystemCapability.Communication.IPC.Core 170 Enumerates the IPC request modes. 193 **System capability**: SystemCapability.Communication.IPC.Core 220 **System capability**: SystemCapability.Communication.IPC.Core 241 **System capability**: SystemCapability.Communication.IPC.Core 271 **System capability**: SystemCapability.Communication.IPC.Core [all …]
|
/ohos5.0/docs/zh-cn/application-dev/application-models/ |
H A D | capi_nativechildprocess_development_guideline.md | 4 - [创建支持IPC回调的子进程](#创建支持ipc回调的子进程):创建子进程,并在父子进程间建立IPC通道,适用于父子进程需要IPC通信的场景。对[IPCKit](../ipc/ipc-capi-… 8 ## 创建支持IPC回调的子进程 12 本章节介绍如何在主进程中创建Native子进程,并在父子进程间建立IPC通道,方便开发者在Native层进行多进程编程。 26 基于已创建完成的Native应用开发工程,在此基础上介绍如何使用`AbilityKit`提供的C API接口,创建Native子进程,并同时在父子进程间建立IPC通道。 46 …子进程启动后会先调用NativeChildProcess_OnConnect获取IPC Stub对象,之后再调用NativeChildProcess_MainProc移交主线程控制权,该函数返回后… 55 // ipcRemoteStub指向子进程实现的ipc stub对象,用于接收来自主进程的IPC消息并响应 72 修改CMakeList.txt文件,编译为动态链接库(假设需要编译出的库文件名称为libchildprocesssample.so),并添加IPC动态库依赖。 84 # 添加依赖的IPC动态库 105 // 保存remoteProxy对象,后续基于IPC Kit提供的API同子进程间进行IPC通信 107 // IPC对象使用完毕后,需要调用OH_IPCRemoteProxy_Destroy方法释放 [all …]
|
/ohos5.0/foundation/multimedia/av_codec/ |
H A D | README_zh.md | 62 │ ├── services # 服务IPC实现 63 │ │ ├── codec # 编解码IPC实现 64 │ │ ├── codeclist # 编解码能力查询IPC实现 65 │ │ ├── common # 服务IPC实现公共库 66 │ │ ├── demuxer # 解封装IPC实现 67 │ │ ├── factory # 服务IPC实现工厂库 68 │ │ ├── muxer # 封装IPC实现 69 │ │ ├── sa_avcodec # 部件主进程IPC实现 70 │ │ └── source # 媒体资源读取工具IPC实现
|
/ohos5.0/docs/en/device-dev/kernel/ |
H A D | kernel-small-bundles-ipc.md | 6 …r-process communication (IPC) mechanism provided by the OpenHarmony LiteOS-A kernel. Different fro… 14 - Manages the access permission of services. Only authorized tasks can send IPC messages to the ser… 19 … needs to receive IPC messages as a Service, and sets the access permission for the Service task (… 21 …IPC message queue for each Service task in kernel mode. The message queue provides the upper-layer… 34 …IPC message memory pool| - **LiteIpcPoolInit**: initializes the IPC message memory pool of a proce…
|
/ohos5.0/foundation/ability/idl_tool/idl_tool_2/codegen/SA/ |
H A D | sa_code_generator.cpp | 81 cppCodeEmitters_["interface"]->OutPut(ast, outDir, GenMode::IPC); in GenCppCode() 82 cppCodeEmitters_["proxy"]->OutPut(ast, outDir, GenMode::IPC); in GenCppCode() 83 cppCodeEmitters_["stub"]->OutPut(ast, outDir, GenMode::IPC); in GenCppCode() 89 rustCodeEmitters_["interface"]->OutPut(ast, outDir, GenMode::IPC); in GenRustCode() 95 tsCodeEmitters_["interface"]->OutPut(ast, outDir, GenMode::IPC); in GenTsCode() 96 tsCodeEmitters_["proxy"]->OutPut(ast, outDir, GenMode::IPC); in GenTsCode() 97 tsCodeEmitters_["stub"]->OutPut(ast, outDir, GenMode::IPC); in GenTsCode()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-backgroundtasks-kit/ |
H A D | errorcode-DeviceUsageStatistics.md | 25 ## 10000002 IPC parcel write failed 61 ## 10000004 IPC通信失败 65 IPC failed. 69 进程间通信的时候,IPC通信失败。 73 系统服务异常或者IPC通信数据异常。
|
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/ |
H A D | errorcode-update.md | 7 ## 11500104 IPC Error 11 IPC error. 15 This error code is reported if an exception is thrown during an IPC call. 19 An IPC API call failed. 24 2. Check whether IPC data conversion is normal. If not, check the conversion process.
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-basic-services-kit/ |
H A D | errorcode-update.md | 7 ## 11500104 IPC通信异常 11 IPC error. 19 IPC 调用过程中出现异常,接口调用失败。 24 2. 检查 IPC 数据转换是否正常,若异常请检查转换流程。
|
/ohos5.0/foundation/communication/ipc/ |
H A D | README_zh.md | 115 继承IPC框架的IRemoteBroker特征,定义一个业务自己的trait,在此trait中定义proxy和stub之间的IPC方法。 141 **表 1** JS侧IPC关键API 154 **表 2** Native侧IPC接口 306 4. IPC通信结束后,使用UIAbility的接口断开连接。 321 1. 定义IPC接口ITestAbility 323 IPC接口继承IPC基类接口IRemoteBroker,接口里定义描述符、业务函数和消息码,其中业务函数在Proxy端和Stub端都需要实现。 472 继承IPC框架IRemoteBroker特征,定义一个业务自己的trait,该trait中定义proxy和stub之间的IPC方法。示例如下定义了ICalc trait: 496 CodeAdd = FIRST_CALL_TRANSACTION, // 由IPC框架定义,值为1,建议业务使用该值作为第一个IPC方法的code 583 当服务收到IPC请求,IPC框架会回调该方法,业务在该方法中完成如下处理: 587 2)调用具体的服务IPC方法。 [all …]
|
/ohos5.0/docs/en/application-dev/ipc/ |
H A D | Readme-EN.md | 1 # IPC Kit (Inter-Process Communication Service) 3 - [Introduction to IPC Kit](ipc-rpc-overview.md) 4 - [IPC and RPC Development](ipc-rpc-development-guideline.md) 6 - [IPC Development (C/C++)](ipc-capi-development-guideline.md)
|
/ohos5.0/docs/en/device-dev/subsystems/ |
H A D | subsys-security-communicationverify.md | 1 # IPC Authentication Development<a name="EN-US_TOPIC_0000001058671861"></a> 5 …gr can be accessed by other processes through IPC APIs. When a process requests to access such an … 7 …IPC authentication component to configure access policies for APIs of the service. When other serv… 11 The following table lists the APIs provided by IPC authentication \(intended for Samgr only\). 13 **Table 1** APIs provided by IPC authentication 37 …mple to describe how to configure access policies for APIs provided by the IPC authentication comp… 116 …IPC authentication component to obtain access policies of the service. When other services or appl… 128 The service UID is not configured in the IPC authentication component.
|