更新日期: 2022/06/01 来源: https://gitee.com/weharmony/kernel_liteos_a_note
IpcMsg结构体 参考

#include <hm_liteipc.h>

成员变量

MsgType type
 
SvcIdentity target
 
UINT32 code
 
UINT32 flag
 标签 更多...
 
UINT64 timestamp
 时间戳,用于验证 更多...
 
UINT32 dataSz
 
VOID * data
 消息的内容,真正要传递的消息,这个数据内容是指spObjNum个数据的内容,定位就靠offsets 更多...
 
UINT32 spObjNum
 对象数量, 例如 spObjNum = 3时,offsets = [0,35,79],代表从data中读取 0 - 35给第一个对象,依次类推 更多...
 
VOID * offsets
 偏移量,注意这里有多少个spObjNum就会有多少个偏移量,详见 CopyDataFromUser 来理解 更多...
 
UINT32 processID
 
UINT32 taskID
 
UINT32 userID
 用户ID 更多...
 
UINT32 gid
 组ID 更多...
 

详细描述

在文件 hm_liteipc.h171 行定义.

结构体成员变量说明

◆ code

UINT32 IpcMsg::code

service function code | 服务功能代码

在文件 hm_liteipc.h174 行定义.

◆ data

VOID* IpcMsg::data

消息的内容,真正要传递的消息,这个数据内容是指spObjNum个数据的内容,定位就靠offsets

在文件 hm_liteipc.h180 行定义.

◆ dataSz

UINT32 IpcMsg::dataSz

size of data | 消息内容大小

在文件 hm_liteipc.h179 行定义.

◆ flag

UINT32 IpcMsg::flag

标签

在文件 hm_liteipc.h175 行定义.

◆ gid

UINT32 IpcMsg::gid

组ID

在文件 hm_liteipc.h187 行定义.

◆ offsets

VOID* IpcMsg::offsets

偏移量,注意这里有多少个spObjNum就会有多少个偏移量,详见 CopyDataFromUser 来理解

在文件 hm_liteipc.h182 行定义.

◆ processID

UINT32 IpcMsg::processID

filled by kernel, processId of sender/reciever | 由内核提供,发送/接收消息的进程ID

在文件 hm_liteipc.h183 行定义.

◆ spObjNum

UINT32 IpcMsg::spObjNum

对象数量, 例如 spObjNum = 3时,offsets = [0,35,79],代表从data中读取 0 - 35给第一个对象,依次类推

在文件 hm_liteipc.h181 行定义.

◆ target

SvcIdentity IpcMsg::target

serviceHandle or targetTaskId, depending on type | 因命令类型不同而异

在文件 hm_liteipc.h173 行定义.

◆ taskID

UINT32 IpcMsg::taskID

filled by kernel, taskId of sender/reciever | 由内核提供,发送/接收消息的任务ID

在文件 hm_liteipc.h184 行定义.

◆ timestamp

UINT64 IpcMsg::timestamp

时间戳,用于验证

在文件 hm_liteipc.h177 行定义.

◆ type

MsgType IpcMsg::type

cmd type, decide the data structure below | 命令类型,决定下面的数据结构

在文件 hm_liteipc.h172 行定义.

◆ userID

UINT32 IpcMsg::userID

用户ID

在文件 hm_liteipc.h186 行定义.


该结构体的文档由以下文件生成: