本文整理汇总了C++中PS_MEM_ALLOC函数的典型用法代码示例。如果您正苦于以下问题:C++ PS_MEM_ALLOC函数的具体用法?C++ PS_MEM_ALLOC怎么用?C++ PS_MEM_ALLOC使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PS_MEM_ALLOC函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CNAS_EHSM_SndDeactivatingRslt
VOS_VOID CNAS_EHSM_SndDeactivatingRslt(VOS_VOID)
{
CNAS_EHSM_EHSM_DEACTIVATING_RSLT_CNF_STRU *pstMsg = VOS_NULL_PTR;
/* Alloc the memory for Deactivating result Message */
pstMsg = (CNAS_EHSM_EHSM_DEACTIVATING_RSLT_CNF_STRU *)PS_MEM_ALLOC(UEPS_PID_EHSM,
sizeof(CNAS_EHSM_EHSM_DEACTIVATING_RSLT_CNF_STRU));
/* Return if malloc fails */
if (VOS_NULL_PTR == pstMsg)
{
return;
}
NAS_MEM_SET_S(((VOS_UINT8 *)pstMsg + VOS_MSG_HEAD_LENGTH),
(VOS_SIZE_T)(sizeof(CNAS_EHSM_EHSM_DEACTIVATING_RSLT_CNF_STRU) - VOS_MSG_HEAD_LENGTH),
0x00,
(VOS_SIZE_T)(sizeof(CNAS_EHSM_EHSM_DEACTIVATING_RSLT_CNF_STRU) - VOS_MSG_HEAD_LENGTH));
/* Construct the internal message */
pstMsg->ulSenderCpuId = VOS_LOCAL_CPUID;
pstMsg->ulSenderPid = UEPS_PID_EHSM;
pstMsg->ulReceiverCpuId = VOS_LOCAL_CPUID;
pstMsg->ulReceiverPid = UEPS_PID_EHSM;
pstMsg->enMsgId = ID_CNAS_EHSM_EHSM_DEACTIVATING_RSLT_CNF;
pstMsg->ulLength = sizeof(CNAS_EHSM_EHSM_DEACTIVATING_RSLT_CNF_STRU) - VOS_MSG_HEAD_LENGTH;
CNAS_EHSM_PutMsgInIntMsgQueue((VOS_UINT8 *)pstMsg);
}
示例2: NAS_CC_LogBufferQueueMsg
VOS_VOID NAS_CC_LogBufferQueueMsg(
VOS_UINT32 ulFullFlg
)
{
NAS_CC_LOG_BUFFER_MSG_INFO_STRU *pstBufferMsg = VOS_NULL_PTR;
NAS_CC_MSG_QUEUE_STRU *pstMsgQueue = VOS_NULL_PTR;
pstBufferMsg = (NAS_CC_LOG_BUFFER_MSG_INFO_STRU*)PS_MEM_ALLOC(WUEPS_PID_CC,
sizeof(NAS_CC_LOG_BUFFER_MSG_INFO_STRU));
if ( VOS_NULL_PTR == pstBufferMsg )
{
NAS_CC_ERR_LOG("NAS_cc_LogBufferQueueMsg:ERROR:Alloc Mem Fail.");
return;
}
pstMsgQueue = NAS_CC_GetCachMsgBufferAddr();
pstBufferMsg->stMsgHeader.ulReceiverCpuId = VOS_LOCAL_CPUID;
pstBufferMsg->stMsgHeader.ulSenderPid = WUEPS_PID_CC;
pstBufferMsg->stMsgHeader.ulReceiverPid = WUEPS_PID_CC;
pstBufferMsg->stMsgHeader.ulLength = sizeof(NAS_CC_LOG_BUFFER_MSG_INFO_STRU) - VOS_MSG_HEAD_LENGTH;
pstBufferMsg->stMsgHeader.ulMsgName = CCOM_LOG_BUFFER_MSG_INFO_IND;
pstBufferMsg->ulFullFlg = ulFullFlg;
PS_MEM_CPY(&(pstBufferMsg->stMsgQueue), pstMsgQueue, sizeof(pstBufferMsg->stMsgQueue));
OM_TraceMsgHook(pstBufferMsg);
PS_MEM_FREE(WUEPS_PID_CC, pstBufferMsg);
return;
}
示例3: SSA_ReportErrorEvent
VOS_VOID SSA_ReportErrorEvent(
VOS_UINT16 ClientId,
VOS_UINT8 OpId,
TAF_SS_ERROR ErrorCode
)
{
TAF_SS_CALL_INDEPENDENT_EVENT_STRU *pstSsEvent = VOS_NULL_PTR;
pstSsEvent = (TAF_SS_CALL_INDEPENDENT_EVENT_STRU *)PS_MEM_ALLOC(WUEPS_PID_SS,
sizeof(TAF_SS_CALL_INDEPENDENT_EVENT_STRU));
if (VOS_NULL_PTR == pstSsEvent)
{
SSA_LOG( ERROR_PRINT, "TAF_SSA_ReportEvtError: Alloc Mem Fail");
return;
}
/* 出错事件的OP项初始化 */
PS_MEM_SET(pstSsEvent, 0, sizeof(VOS_UINT32));
pstSsEvent->OP_Error = VOS_TRUE;
pstSsEvent->SsEvent = TAF_SS_EVT_ERROR;
pstSsEvent->ClientId = ClientId;
pstSsEvent->OpId = OpId;
pstSsEvent->ErrorCode = ErrorCode;
TAF_SsEventReport(pstSsEvent);
PS_MEM_FREE(WUEPS_PID_SS, pstSsEvent);
return;
}
示例4: GUNAS_SMS_ATCmdFilter
VOS_UINT32 GUNAS_SMS_ATCmdFilter(
VOS_UINT8 *pucATData,
VOS_UINT16 usLen
)
{
VOS_UINT32 i;
VOS_UINT8 *pucTempData = VOS_NULL_PTR;
pucTempData = (VOS_UINT8 *)PS_MEM_ALLOC(WUEPS_PID_AT, usLen);
if (VOS_NULL_PTR == pucTempData)
{
return VOS_FALSE;
}
(VOS_VOID)PS_MEM_CPY(pucTempData, pucATData, usLen);
(VOS_VOID)At_UpString(pucTempData, usLen);
for (i = 0; i < (sizeof(g_apcATFileterTable)/sizeof(g_apcATFileterTable[0])); i++)
{
if (VOS_OK == PS_MEM_CMP((VOS_UINT8 *)g_apcATFileterTable[i], pucTempData, VOS_StrLen(g_apcATFileterTable[i])))
{
PS_MEM_FREE(WUEPS_PID_AT, pucTempData);
return VOS_TRUE;
}
}
PS_MEM_FREE(WUEPS_PID_AT, pucTempData);
return VOS_FALSE;
}
示例5: NAS_CC_InitErrLogInfo
VOS_VOID NAS_CC_InitErrLogInfo(VOS_VOID)
{
VOS_CHAR *pbuffer;
OM_RING_ID pRingbuffer;
/* en_NV_Item_ErrLogCtrlInfo */
NAS_CC_ReadErrlogCtrlInfoNvim();
/* 申请cache的动态内存 , 长度加1是因为读和写指针之间在写满时会相差一个字节 */
pbuffer = (char *)PS_MEM_ALLOC(WUEPS_PID_CC, NAS_CC_RING_BUFFER_SIZE + 1);
if (VOS_NULL_PTR == pbuffer)
{
NAS_CC_SetErrLogRingBufAddr(VOS_NULL_PTR);
return;
}
/* 调用OM的接口,将申请的动态内存创建为RING BUFFER */
pRingbuffer = OM_RingBufferCreateEx(pbuffer, NAS_CC_RING_BUFFER_SIZE + 1);
if (VOS_NULL_PTR == pRingbuffer)
{
PS_MEM_FREE(WUEPS_PID_CC, pbuffer);
}
/* 保存ringbuffer指针 */
NAS_CC_SetErrLogRingBufAddr(pRingbuffer);
NAS_CC_SetErrlogOverflowCnt(0);
return;
}
示例6: TAF_XPDS_MNTN_LogFsmInfo
VOS_VOID TAF_XPDS_MNTN_LogFsmInfo(
VOS_UINT32 ulPid,
VOS_UINT32 ulFsmId,
VOS_UINT32 ulFsmState
)
{
TAF_XPDS_MNTN_LOG_FSM_INFO_STRU *pstMsg = VOS_NULL_PTR;
pstMsg = (TAF_XPDS_MNTN_LOG_FSM_INFO_STRU*)PS_MEM_ALLOC(ulPid,
sizeof(TAF_XPDS_MNTN_LOG_FSM_INFO_STRU));
if (VOS_NULL_PTR == pstMsg)
{
return;
}
pstMsg->ulReceiverCpuId = VOS_LOCAL_CPUID;
pstMsg->ulReceiverPid = ulPid;
pstMsg->ulSenderCpuId = VOS_LOCAL_CPUID;
pstMsg->ulSenderPid = ulPid;
pstMsg->ulLength = sizeof(TAF_XPDS_MNTN_LOG_FSM_INFO_STRU) - VOS_MSG_HEAD_LENGTH;
pstMsg->enMsgId = ID_TAF_XPDS_MNTN_LOG_FSM_INFO_IND;
pstMsg->ulModuleId = ulPid;
pstMsg->ulCurFsmId = ulFsmId;
pstMsg->ulCurFsmState = ulFsmState;
DIAG_TraceReport(pstMsg);
PS_MEM_FREE(ulPid, pstMsg);
return;
}
示例7: CNAS_EHSM_SndInternalAttachReq
VOS_VOID CNAS_EHSM_SndInternalAttachReq(
CNAS_EHSM_ATTACH_REASON_ENUM_UINT32 enAttachReason
)
{
CNAS_EHSM_EHSM_ATTACH_REQ_STRU *pstMsg = VOS_NULL_PTR;
/* Alloc the memory for Handover attach Message */
pstMsg = (CNAS_EHSM_EHSM_ATTACH_REQ_STRU *)PS_MEM_ALLOC(UEPS_PID_EHSM,
sizeof(CNAS_EHSM_EHSM_ATTACH_REQ_STRU));
/* Return if malloc fails */
if (VOS_NULL_PTR == pstMsg)
{
return;
}
/* Construct the internal message */
pstMsg->ulSenderCpuId = VOS_LOCAL_CPUID;
pstMsg->ulSenderPid = UEPS_PID_EHSM;
pstMsg->ulReceiverCpuId = VOS_LOCAL_CPUID;
pstMsg->ulReceiverPid = UEPS_PID_EHSM;
pstMsg->enMsgId = ID_CNAS_EHSM_EHSM_ATTACH_REQ;
pstMsg->ulLength = sizeof(CNAS_EHSM_EHSM_ATTACH_REQ_STRU) - VOS_MSG_HEAD_LENGTH;
pstMsg->enAttachReason = enAttachReason;
CNAS_EHSM_PutMsgInIntMsgQueue((VOS_UINT8 *)pstMsg);
}
示例8: CNAS_EHSM_SndActivatingRslt
VOS_VOID CNAS_EHSM_SndActivatingRslt(
VOS_UINT32 ulResult,
VOS_UINT8 ucIsPermanentFail
)
{
CNAS_EHSM_EHSM_ACTIVATING_RSLT_CNF_STRU *pstMsg = VOS_NULL_PTR;
/* Alloc the memory for Switch On result Message */
pstMsg = (CNAS_EHSM_EHSM_ACTIVATING_RSLT_CNF_STRU *)PS_MEM_ALLOC(UEPS_PID_EHSM,
sizeof(CNAS_EHSM_EHSM_ACTIVATING_RSLT_CNF_STRU));
/* Return if malloc fails */
if (VOS_NULL_PTR == pstMsg)
{
return;
}
/* Construct the internal message */
pstMsg->ulSenderCpuId = VOS_LOCAL_CPUID;
pstMsg->ulSenderPid = UEPS_PID_EHSM;
pstMsg->ulReceiverCpuId = VOS_LOCAL_CPUID;
pstMsg->ulReceiverPid = UEPS_PID_EHSM;
pstMsg->enMsgId = ID_CNAS_EHSM_EHSM_ACTIVATING_RSLT_CNF;
pstMsg->ulLength = sizeof(CNAS_EHSM_EHSM_ACTIVATING_RSLT_CNF_STRU) - VOS_MSG_HEAD_LENGTH;
pstMsg->enRslt = ulResult;
pstMsg->ucIsPermanentFail = ucIsPermanentFail;
CNAS_EHSM_PutMsgInIntMsgQueue((VOS_UINT8 *)pstMsg);
}
示例9: CNAS_EHSM_SndLocalDetachAllReq
VOS_VOID CNAS_EHSM_SndLocalDetachAllReq(
EHSM_APS_CAUSE_ENUM_UINT32 enCause
)
{
CNAS_EHSM_EHSM_LOCAL_DETACH_ALL_REQ_STRU *pstMsg = VOS_NULL_PTR;
/* Alloc the memory for pdn setup req Message */
pstMsg = (CNAS_EHSM_EHSM_LOCAL_DETACH_ALL_REQ_STRU *)PS_MEM_ALLOC(UEPS_PID_EHSM,
sizeof(CNAS_EHSM_EHSM_LOCAL_DETACH_ALL_REQ_STRU));
/* Return if malloc fails */
if (VOS_NULL_PTR == pstMsg)
{
return;
}
/* Construct the internal message */
pstMsg->ulSenderCpuId = VOS_LOCAL_CPUID;
pstMsg->ulSenderPid = UEPS_PID_EHSM;
pstMsg->ulReceiverCpuId = VOS_LOCAL_CPUID;
pstMsg->ulReceiverPid = UEPS_PID_EHSM;
pstMsg->enMsgId = ID_CNAS_EHSM_EHSM_LOCAL_DETACH_ALL_REQ;
pstMsg->ulLength = sizeof(CNAS_EHSM_EHSM_LOCAL_DETACH_ALL_REQ_STRU) - VOS_MSG_HEAD_LENGTH;
pstMsg->enCause = enCause;
CNAS_EHSM_PutMsgInIntMsgQueue((VOS_UINT8 *)pstMsg);
}
示例10: CNAS_EHSM_SndInternalAbortReq
VOS_VOID CNAS_EHSM_SndInternalAbortReq(
VOS_UINT32 ulEventType
)
{
CNAS_EHSM_EHSM_ABORT_REQ_STRU *pstMsg = VOS_NULL_PTR;
/* Alloc the memory for pdn setup req Message */
pstMsg = (CNAS_EHSM_EHSM_ABORT_REQ_STRU *)PS_MEM_ALLOC(UEPS_PID_EHSM,
sizeof(CNAS_EHSM_EHSM_ABORT_REQ_STRU));
/* Return if malloc fails */
if (VOS_NULL_PTR == pstMsg)
{
return;
}
/* Construct the internal message */
pstMsg->ulSenderCpuId = VOS_LOCAL_CPUID;
pstMsg->ulSenderPid = UEPS_PID_EHSM;
pstMsg->ulReceiverCpuId = VOS_LOCAL_CPUID;
pstMsg->ulReceiverPid = UEPS_PID_EHSM;
pstMsg->enMsgId = ID_CNAS_EHSM_EHSM_ABORT_REQ;
pstMsg->ulLength = sizeof(CNAS_EHSM_EHSM_ABORT_REQ_STRU) - VOS_MSG_HEAD_LENGTH;
pstMsg->ulEventType = ulEventType;
CNAS_EHSM_PutMsgInIntMsgQueue((VOS_UINT8 *)pstMsg);
}
示例11: TAF_XPDS_MNTN_TraceSessionBeginIndMsg
VOS_VOID TAF_XPDS_MNTN_TraceSessionBeginIndMsg(VOS_VOID)
{
TAF_XPDS_MNTN_SESSION_BEGIN_IND_STRU *pstMsg = VOS_NULL_PTR;
TAF_XPDS_CFG_INFO_STRU *pstCagpsCfg = VOS_NULL_PTR;
pstCagpsCfg = TAF_XPDS_GetAgpsCfg();
pstMsg = (TAF_XPDS_MNTN_SESSION_BEGIN_IND_STRU *)PS_MEM_ALLOC(UEPS_PID_XPDS, sizeof(TAF_XPDS_MNTN_SESSION_BEGIN_IND_STRU));
if (VOS_NULL_PTR == pstMsg)
{
XPDS_ERROR_LOG("TAF_XPDS_MNTN_TraceSessionBeginIndMsg:ERROR:Alloc Mem Fail!");
return;
}
PS_MEM_SET( ((VOS_UINT8*)pstMsg + VOS_MSG_HEAD_LENGTH), 0,
sizeof(TAF_XPDS_MNTN_SESSION_BEGIN_IND_STRU) - VOS_MSG_HEAD_LENGTH);
pstMsg->ulReceiverCpuId = VOS_LOCAL_CPUID;
pstMsg->ulReceiverPid = UEPS_PID_XPDS;
pstMsg->ulSenderCpuId = VOS_LOCAL_CPUID;
pstMsg->ulSenderPid = UEPS_PID_XPDS;
pstMsg->ulLength = sizeof(TAF_XPDS_MNTN_SESSION_BEGIN_IND_STRU) - VOS_MSG_HEAD_LENGTH;
pstMsg->enMsgId = ID_TAF_XPDS_MNTN_SESSION_BEGIN_IND;
PS_MEM_CPY(&pstMsg->stCagpsCfg, pstCagpsCfg, sizeof(TAF_XPDS_CFG_INFO_STRU));
/* 消息勾包 */
DIAG_TraceReport(pstMsg);
PS_MEM_FREE(UEPS_PID_XPDS, pstMsg);
return;
}
示例12: TAF_XPDS_MNTN_TracePseuRangeInfoCtxIndMsg
VOS_VOID TAF_XPDS_MNTN_TracePseuRangeInfoCtxIndMsg(VOS_VOID)
{
TAF_XPDS_MNTN_PSEU_RANGE_INFO_CTX_IND_STRU *pstMsg = VOS_NULL_PTR;
TAF_XPDS_REVLINK_RSP_PSEU_RANGE_MEAS_STRU *pstRspPrmInfo = VOS_NULL_PTR;
pstRspPrmInfo = &(TAF_XPDS_GetPdePublicData()->stRspPrmInfo);
pstMsg = (TAF_XPDS_MNTN_PSEU_RANGE_INFO_CTX_IND_STRU *)PS_MEM_ALLOC(UEPS_PID_XPDS, sizeof(TAF_XPDS_MNTN_PSEU_RANGE_INFO_CTX_IND_STRU));
if (VOS_NULL_PTR == pstMsg)
{
XPDS_ERROR_LOG("TAF_XPDS_MNTN_TracePseuRangeInfoCtxIndMsg:ERROR:Alloc Mem Fail!");
return;
}
PS_MEM_SET( ((VOS_UINT8*)pstMsg + VOS_MSG_HEAD_LENGTH), 0,
sizeof(TAF_XPDS_MNTN_PSEU_RANGE_INFO_CTX_IND_STRU) - VOS_MSG_HEAD_LENGTH);
pstMsg->ulReceiverCpuId = VOS_LOCAL_CPUID;
pstMsg->ulReceiverPid = UEPS_PID_XPDS;
pstMsg->ulSenderCpuId = VOS_LOCAL_CPUID;
pstMsg->ulSenderPid = UEPS_PID_XPDS;
pstMsg->ulLength = sizeof(TAF_XPDS_MNTN_PSEU_RANGE_INFO_CTX_IND_STRU) - VOS_MSG_HEAD_LENGTH;
pstMsg->enMsgId = ID_TAF_XPDS_MNTN_PSEU_RANGE_INFO_CTX_IND;
PS_MEM_CPY(&pstMsg->stRspPrmInfo, pstRspPrmInfo, sizeof(TAF_XPDS_REVLINK_RSP_PSEU_RANGE_MEAS_STRU));
/* 消息勾包 */
DIAG_TraceReport(pstMsg);
PS_MEM_FREE(UEPS_PID_XPDS, pstMsg);
return;
}
示例13: TAF_XPDS_MNTN_TraceAlmInfoCtxIndMsg
VOS_VOID TAF_XPDS_MNTN_TraceAlmInfoCtxIndMsg(VOS_VOID)
{
TAF_XPDS_MNTN_ALM_INFO_CTX_IND_STRU *pstMsg = VOS_NULL_PTR;
TAF_XPDS_FWDLINK_RSP_GPS_ALM_STRU *pstProvAlm = VOS_NULL_PTR;
pstProvAlm = &(TAF_XPDS_GetPdePublicData()->stProvGpsAlm);
pstMsg = (TAF_XPDS_MNTN_ALM_INFO_CTX_IND_STRU *)PS_MEM_ALLOC(UEPS_PID_XPDS, sizeof(TAF_XPDS_MNTN_ALM_INFO_CTX_IND_STRU));
if (VOS_NULL_PTR == pstMsg)
{
XPDS_ERROR_LOG("TAF_XPDS_MNTN_TraceEphInfoCtxIndMsg:ERROR:Alloc Mem Fail!");
return;
}
PS_MEM_SET( ((VOS_UINT8*)pstMsg + VOS_MSG_HEAD_LENGTH), 0,
sizeof(TAF_XPDS_MNTN_ALM_INFO_CTX_IND_STRU) - VOS_MSG_HEAD_LENGTH);
pstMsg->ulReceiverCpuId = VOS_LOCAL_CPUID;
pstMsg->ulReceiverPid = UEPS_PID_XPDS;
pstMsg->ulSenderCpuId = VOS_LOCAL_CPUID;
pstMsg->ulSenderPid = UEPS_PID_XPDS;
pstMsg->ulLength = sizeof(TAF_XPDS_MNTN_ALM_INFO_CTX_IND_STRU) - VOS_MSG_HEAD_LENGTH;
pstMsg->enMsgId = ID_TAF_XPDS_MNTN_ALM_INFO_CTX_IND;
PS_MEM_CPY(&(pstMsg->stProvAlm), pstProvAlm, sizeof(TAF_XPDS_FWDLINK_RSP_GPS_ALM_STRU));
/* 消息勾包 */
DIAG_TraceReport(pstMsg);
PS_MEM_FREE(UEPS_PID_XPDS, pstMsg);
return;
}
示例14: TAF_XPDS_MNTN_TraceForwardPdeHeaderInfo
VOS_VOID TAF_XPDS_MNTN_TraceForwardPdeHeaderInfo(VOS_VOID)
{
TAF_XPDS_MNTN_FORWARD_PDE_MSG_HEADER_IND_STRU_STRU *pstMsg = VOS_NULL_PTR;
TAF_XPDS_PD_MSG_HEADER_STRU *pstPdMsgHeader = VOS_NULL_PTR;
pstPdMsgHeader = &(TAF_XPDS_GetPdePublicData()->stFwdPdMsgHeader);
pstMsg = (TAF_XPDS_MNTN_FORWARD_PDE_MSG_HEADER_IND_STRU_STRU *)PS_MEM_ALLOC(UEPS_PID_XPDS,
sizeof(TAF_XPDS_MNTN_FORWARD_PDE_MSG_HEADER_IND_STRU_STRU));
if (VOS_NULL_PTR == pstMsg)
{
XPDS_ERROR_LOG("TAF_XPDS_MNTN_TraceForwardPdeHeaderInfo:ERROR:Alloc Mem Fail!");
return;
}
PS_MEM_SET( ((VOS_UINT8*)pstMsg + VOS_MSG_HEAD_LENGTH), 0,
sizeof(TAF_XPDS_MNTN_FORWARD_PDE_MSG_HEADER_IND_STRU_STRU) - VOS_MSG_HEAD_LENGTH);
pstMsg->ulReceiverCpuId = VOS_LOCAL_CPUID;
pstMsg->ulReceiverPid = UEPS_PID_XPDS;
pstMsg->ulSenderCpuId = VOS_LOCAL_CPUID;
pstMsg->ulSenderPid = UEPS_PID_XPDS;
pstMsg->ulLength = sizeof(TAF_XPDS_MNTN_FORWARD_PDE_MSG_HEADER_IND_STRU_STRU) - VOS_MSG_HEAD_LENGTH;
pstMsg->enMsgId = ID_TAF_XPDS_MNTN_FORWARD_PDE_HEADER_IND;
PS_MEM_CPY(&(pstMsg->stPdMsgHeader), pstPdMsgHeader, sizeof(TAF_XPDS_PD_MSG_HEADER_STRU));
/* 消息勾包 */
DIAG_TraceReport(pstMsg);
PS_MEM_FREE(UEPS_PID_XPDS, pstMsg);
return;
}
示例15: ADS_UL_RcvTiRptStatsInfoExpired
VOS_VOID ADS_UL_RcvTiRptStatsInfoExpired(
VOS_UINT32 ulTimerName,
VOS_UINT32 ulParam
)
{
ADS_LOG_RPT_STATS_INFO_STRU *pstMsg = VOS_NULL_PTR;
/* 将记录的统计信息通过SDT消息勾出来 */
pstMsg = (ADS_LOG_RPT_STATS_INFO_STRU*)PS_MEM_ALLOC(ACPU_PID_ADS_UL, sizeof(ADS_LOG_RPT_STATS_INFO_STRU));
if (VOS_NULL_PTR == pstMsg)
{
ADS_ERROR_LOG(ACPU_PID_ADS_UL, "ADS_UL_RcvTiRptStatsInfoExpired: ERROR:Alloc Mem Fail");
return;
}
PS_MEM_SET(pstMsg, 0, sizeof(ADS_LOG_RPT_STATS_INFO_STRU));
pstMsg->stLogHeader.ulReceiverCpuId = VOS_LOCAL_CPUID;
pstMsg->stLogHeader.ulSenderCpuId = VOS_LOCAL_CPUID;
pstMsg->stLogHeader.ulSenderPid = ACPU_PID_ADS_UL;
pstMsg->stLogHeader.ulReceiverPid = ACPU_PID_ADS_UL;
pstMsg->stLogHeader.ulLength = sizeof(ADS_LOG_RPT_STATS_INFO_STRU) - VOS_MSG_HEAD_LENGTH;;
pstMsg->stLogHeader.enMsgId = ID_ADS_LOG_RPT_STATS_INFO;
PS_MEM_CPY(&pstMsg->stAdsStats, &g_stAdsStats, sizeof(g_stAdsStats));
OM_AcpuTraceMsgHook(pstMsg);
PS_MEM_FREE(ACPU_PID_ADS_UL, pstMsg);
/* 重新启动上报统计信息定时器 */
ADS_StartTimer(ACPU_PID_ADS_UL, ulTimerName, TI_ADS_RPT_STATS_LEN);
return ;
}
开发者ID:fly2436732935,项目名称:android_kernel_honor7_PLK-AL10_PLK-TL01H_PLK-UL00_PLK-CL00_PLK-TL00,代码行数:35,代码来源:AdsUpLink.c