848#ifdef LOSCFG_SECURITY_VID
852 if ((clockID != CLOCK_REALTIME) || (timerID == NULL)) {
858 if (signo > SIGRTMAX || signo < 1) {
862 if (evp && (evp->sigev_notify != SIGEV_SIGNAL && evp->sigev_notify != SIGEV_THREAD_ID)) {
873 arg->
tid = evp ? evp->sigev_tid : 0;
876 arg->
sigev_value.sival_ptr = evp ? evp->sigev_value.sival_ptr : NULL;
879 errno = (ret == LOS_ERRNO_SWTMR_MAXSIZE) ? EAGAIN : EINVAL;
884#ifdef LOSCFG_SECURITY_VID
886 if (vid == MAX_INVALID_TIMER_VID) {
893 *timerID = (timer_t)(
UINTPTR)swtmrID;
LITE_OS_SEC_TEXT UINT32 LOS_SwtmrDelete(UINT16 swtmrID)
接口函数 删除定时器
LITE_OS_SEC_TEXT_INIT UINT32 LOS_SwtmrCreate(UINT32 interval, UINT8 mode, SWTMR_PROC_FUNC handler, UINT16 *swtmrID, UINTPTR arg)
创建定时器,设置定时器的定时时长、定时器模式、回调函数,并返回定时器ID
LITE_OS_SEC_TEXT UINT32 LOS_GetCurrProcessID(VOID)
获取当前进程的进程ID
void * malloc(size_t size)
动态分配内存块大小
void free(void *ptr)
释放ptr所指向的内存空间
static VOID SwtmrProc(UINTPTR tmrArg)
UINT16 AddNodeByRid(UINT16 rid)