• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ PS_MEM_ALLOC函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中PS_MEM_ALLOC函数的典型用法代码示例。如果您正苦于以下问题:C++ PS_MEM_ALLOC函数的具体用法?C++ PS_MEM_ALLOC怎么用?C++ PS_MEM_ALLOC使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了PS_MEM_ALLOC函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);

}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:28,代码来源:CnasEhsmSndInternalMsg.c


示例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;
}
开发者ID:debbiche,项目名称:android_kernel_huawei_p8,代码行数:30,代码来源:NasCcCommon.c


示例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;
}
开发者ID:debbiche,项目名称:android_kernel_huawei_p8,代码行数:33,代码来源:SsTaskEntry.c


示例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;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:30,代码来源:GuNasLogFilter.c


示例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;

}
开发者ID:debbiche,项目名称:android_kernel_huawei_p8,代码行数:31,代码来源:NasCcCtx.c


示例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;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:31,代码来源:TafXpdsMntn.c


示例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);

}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:28,代码来源:CnasEhsmSndInternalMsg.c


示例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);

}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:30,代码来源:CnasEhsmSndInternalMsg.c


示例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);

}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:28,代码来源:CnasEhsmSndInternalMsg.c


示例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);

}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:28,代码来源:CnasEhsmSndInternalMsg.c


示例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;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:33,代码来源:TafXpdsMntn.c


示例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;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:33,代码来源:TafXpdsMntn.c


示例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;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:33,代码来源:TafXpdsMntn.c


示例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;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:35,代码来源:TafXpdsMntn.c


示例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


示例16: TAF_XPDS_MNTN_TraceIntMsg

VOS_VOID  TAF_XPDS_MNTN_TraceIntMsg(
    VOS_UINT32                          ulModuleId,
    VOS_UINT32                          ulLength,
    VOS_VOID                           *pstMsg
)
{
    VOS_UINT8                          *pucData = VOS_NULL_PTR;

    pucData = (VOS_UINT8 *)PS_MEM_ALLOC(ulModuleId, ulLength);

    if (VOS_NULL_PTR == pucData)
    {
        XPDS_ERROR_LOG("CNAS_CDMA_TraceIntMsg:ERROR:Alloc Mem Fail!");
        return;
    }

    /* 勾包消息赋值 */
    PS_MEM_CPY(pucData, pstMsg, ulLength);

    /* 消息勾包 */
    DIAG_TraceReport(pucData);

    PS_MEM_FREE(ulModuleId, pucData);

    return;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:26,代码来源:TafXpdsMntn.c


示例17: SSA_ReportUssdDataSndEvent

VOS_VOID SSA_ReportUssdDataSndEvent(VOS_UINT8 ucTi)
{
    TAF_SS_CALL_INDEPENDENT_EVENT_STRU *pstSsEvent;

    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, "SSA_ReportUssdDataSndEvent:ERROR: Alloc Mem Fail");
        SSA_TiFree(ucTi);
        return;
    }

    /*对事件上报的内容赋初值*/
    PS_MEM_SET(pstSsEvent, 0 , 4);
    pstSsEvent->SsEvent               =  TAF_SS_EVT_USSD_DATA_SND;
    pstSsEvent->OpId                  = gastSsaStatetable[ucTi].OpId;
    pstSsEvent->ClientId              = gastSsaStatetable[ucTi].ClientId;

    MN_SendClientEvent(pstSsEvent->ClientId,
                       MN_CALLBACK_SS,
                       pstSsEvent->SsEvent,
                       pstSsEvent);

    PS_MEM_FREE(WUEPS_PID_SS, pstSsEvent);

    return;

}
开发者ID:debbiche,项目名称:android_kernel_huawei_p8,代码行数:29,代码来源:SsTaskEntry.c


示例18: TAF_XPDS_MNTN_TraceReverseStartDeliverData

VOS_VOID TAF_XPDS_MNTN_TraceReverseStartDeliverData(
    TAF_XPDS_START_DELV_DATA_STRU      *pstStartDelvData
)
{
    TAF_XPDS_MNTN_REVERSE_START_DELIVER_DATA_IND_STRU_STRU *pstMsg         = VOS_NULL_PTR;

    pstMsg = (TAF_XPDS_MNTN_REVERSE_START_DELIVER_DATA_IND_STRU_STRU *)PS_MEM_ALLOC(UEPS_PID_XPDS,
                                                sizeof(TAF_XPDS_MNTN_REVERSE_START_DELIVER_DATA_IND_STRU_STRU));

    if (VOS_NULL_PTR == pstMsg)
    {
        XPDS_ERROR_LOG("TAF_XPDS_MNTN_TraceReverseStartDeliverData:ERROR:Alloc Mem Fail!");
        return;
    }

    PS_MEM_SET( ((VOS_UINT8*)pstMsg + VOS_MSG_HEAD_LENGTH), 0,
                sizeof(TAF_XPDS_MNTN_REVERSE_START_DELIVER_DATA_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_REVERSE_START_DELIVER_DATA_IND_STRU_STRU) - VOS_MSG_HEAD_LENGTH;
    pstMsg->enMsgId         = ID_TAF_XPDS_MNTN_REVERSE_START_DELIVER_DATA_IND;

    PS_MEM_CPY(&(pstMsg->stStartDelvData), pstStartDelvData, sizeof(TAF_XPDS_START_DELV_DATA_STRU));

    /* 消息勾包 */
    DIAG_TraceReport(pstMsg);

    PS_MEM_FREE(UEPS_PID_XPDS, pstMsg);

    return;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:34,代码来源:TafXpdsMntn.c


示例19: TAF_XPDS_MNTN_TraceReverseMpcPosReportReq

VOS_VOID TAF_XPDS_MNTN_TraceReverseMpcPosReportReq(
    TAF_XPDS_MPC_POS_REPORT_STRU       *pstPosReportReq
)
{
    TAF_XPDS_MNTN_REVERSE_MPC_POS_REPORT_REQ_IND_STRU_STRU *pstMsg         = VOS_NULL_PTR;

    pstMsg = (TAF_XPDS_MNTN_REVERSE_MPC_POS_REPORT_REQ_IND_STRU_STRU *)PS_MEM_ALLOC(UEPS_PID_XPDS,
                                                        sizeof(TAF_XPDS_MNTN_REVERSE_MPC_POS_REPORT_REQ_IND_STRU_STRU));

    if (VOS_NULL_PTR == pstMsg)
    {
        XPDS_ERROR_LOG("TAF_XPDS_MNTN_TraceReverseMpcPosReportReq:ERROR:Alloc Mem Fail!");
        return;
    }

    PS_MEM_SET( ((VOS_UINT8*)pstMsg + VOS_MSG_HEAD_LENGTH), 0,
                sizeof(TAF_XPDS_MNTN_REVERSE_MPC_POS_REPORT_REQ_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_REVERSE_MPC_POS_REPORT_REQ_IND_STRU_STRU) - VOS_MSG_HEAD_LENGTH;
    pstMsg->enMsgId         = ID_TAF_XPDS_MNTN_REVERSE_MPC_POS_REPORT_REQ_IND;

    PS_MEM_CPY(&(pstMsg->stPosReportReq), pstPosReportReq, sizeof(TAF_XPDS_MPC_POS_REPORT_STRU));

    /* 消息勾包 */
    DIAG_TraceReport(pstMsg);

    PS_MEM_FREE(UEPS_PID_XPDS, pstMsg);

    return;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:34,代码来源:TafXpdsMntn.c


示例20: TAF_XPDS_MNTN_TraceReversePdeRejRsp

VOS_VOID TAF_XPDS_MNTN_TraceReversePdeRejRsp(
    TAF_XPDS_REVLINK_RSP_REJECT_STRU   *pstRejInfo
)
{
    TAF_XPDS_MNTN_REVERSE_PDE_REJ_RSP_IND_STRU_STRU   *pstMsg         = VOS_NULL_PTR;

    pstMsg = (TAF_XPDS_MNTN_REVERSE_PDE_REJ_RSP_IND_STRU_STRU *)PS_MEM_ALLOC(UEPS_PID_XPDS,
                                                sizeof(TAF_XPDS_MNTN_REVERSE_PDE_REJ_RSP_IND_STRU_STRU));

    if (VOS_NULL_PTR == pstMsg)
    {
        XPDS_ERROR_LOG("TAF_XPDS_MNTN_TraceReversePdeRejRsp:ERROR:Alloc Mem Fail!");
        return;
    }

    PS_MEM_SET( ((VOS_UINT8*)pstMsg + VOS_MSG_HEAD_LENGTH), 0,
                sizeof(TAF_XPDS_MNTN_REVERSE_PDE_REJ_RSP_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_REVERSE_PDE_REJ_RSP_IND_STRU_STRU) - VOS_MSG_HEAD_LENGTH;
    pstMsg->enMsgId         = ID_TAF_XPDS_MNTN_REVERSE_PDE_REJ_RSP_IND;

    PS_MEM_CPY(&(pstMsg->stRejInfo), pstRejInfo, sizeof(TAF_XPDS_REVLINK_RSP_REJECT_STRU));

    /* 消息勾包 */
    DIAG_TraceReport(pstMsg);

    PS_MEM_FREE(UEPS_PID_XPDS, pstMsg);

    return;
}
开发者ID:XePeleato,项目名称:android_kernel_huawei_venus,代码行数:34,代码来源:TafXpdsMntn.c



注:本文中的PS_MEM_ALLOC函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ PS_MEM_CPY函数代码示例发布时间:2022-05-30
下一篇:
C++ PS_LOG函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap