/kernel/liteos_a/testsuites/unittest/extended/liteipc/ |
D | smgr_demo.cpp | 109 uint32_t RegService(int fd, char *serviceName, uint32_t nameLen, uint32_t *serviceHandle) in RegService() argument 118 if (nameLen > NAME_LEN_MAX) { in RegService() 121 (void)memcpy_s(name.serviceName, nameLen, serviceName, nameLen); in RegService() 122 name.nameLen = nameLen; in RegService() 144 uint32_t GetService(int fd, char *serviceName, uint32_t nameLen, uint32_t *serviceHandle) in GetService() argument 153 if (nameLen > NAME_LEN_MAX) { in GetService() 156 (void)memcpy_s(name.serviceName, nameLen, serviceName, nameLen); in GetService() 157 name.nameLen = nameLen; in GetService() 189 if ((info->nameLen == 0) || (info->serviceName == NULL)) { in HandleServiceRegAndGet() 193 … if (g_serviceNameMap[i].serviceName != NULL && g_serviceNameMap[i].nameLen == info->nameLen) { in HandleServiceRegAndGet() [all …]
|
D | smgr_demo.h | 38 uint32_t nameLen; member 49 uint32_t RegService(int fd, char *serviceName, uint32_t nameLen, uint32_t *serviceHandle); 50 uint32_t GetService(int fd, char *serviceName, uint32_t nameLen, uint32_t *serviceHandle);
|
/kernel/liteos_a/fs/vfs/ |
D | path_cache.c | 75 pc->name, pc->parentVnode, pc->childVnode, pc->nameLen); in PathCacheDump() 91 nameSum += dent->nameLen; in PathCacheMemoryDump() 136 pc->nameLen = len; in PathCacheAlloc() 170 if (pc->parentVnode == parent && pc->nameLen == len && !strncmp(pc->name, name, len)) { in PathCacheLookup()
|
D | vnode.c | 561 result = strncpy_s(dir->fd_dir[idx].d_name, dstNameSize, item->name, item->nameLen); in VnodeReaddir()
|
/kernel/liteos_a/fs/proc/src/ |
D | proc_file.c | 51 .nameLen = 5, 65 if (len != pn->nameLen) { in ProcMatch() 82 if ((length == pn->nameLen) && strcmp(pn->name, name) == 0) { in ProcFindNode() 144 len = g_procRootDirEntry.nameLen; in ProcFindEntry() 235 pn->nameLen = strlen(lastName); in ProcAllocNode() 250 ret = memcpy_s(pn->pf->name, sizeof(pn->pf->name), pn->name, pn->nameLen + 1); in ProcAllocNode() 531 int namelen = pn->pdirCurrent->nameLen; in GetNextDir()
|
/kernel/liteos_m/kal/posix/src/ |
D | mqueue.c | 160 size_t nameLen; in SaveMqueueName() local 162 nameLen = strlen(mqName); /* sys_mq_open has checked name and name length */ in SaveMqueueName() 163 mqueueCB->mq_name = (char *)LOS_MemAlloc(OS_SYS_MEM_ADDR, nameLen + 1); in SaveMqueueName() 169 if (strncpy_s(mqueueCB->mq_name, (nameLen + 1), mqName, nameLen) != EOK) { in SaveMqueueName() 175 mqueueCB->mq_name[nameLen] = '\0'; in SaveMqueueName()
|
/kernel/liteos_a/drivers/block/disk/src/ |
D | disk.c | 107 size_t nameLen; in los_alloc_diskid_byname() local 114 nameLen = strlen(diskName); in los_alloc_diskid_byname() 115 if (nameLen > DISK_NAME) { in los_alloc_diskid_byname() 141 disk->disk_name = LOS_MemAlloc(m_aucSysMem0, (nameLen + 1)); in los_alloc_diskid_byname() 147 if (strncpy_s(disk->disk_name, (nameLen + 1), diskName, nameLen) != EOK) { in los_alloc_diskid_byname() 154 disk->disk_name[nameLen] = '\0'; in los_alloc_diskid_byname() 1315 size_t nameLen; in DiskStructInit() local 1322 nameLen = strlen(diskName); /* caller los_disk_init has chek name */ in DiskStructInit() 1329 disk->disk_name = LOS_MemAlloc(m_aucSysMem0, (nameLen + 1)); in DiskStructInit() 1335 if (strncpy_s(disk->disk_name, (nameLen + 1), diskName, nameLen) != EOK) { in DiskStructInit() [all …]
|
/kernel/liteos_a/fs/vfs/include/ |
D | path_cache.h | 44 uint8_t nameLen; /* length of path component */ member
|
/kernel/liteos_a/compat/posix/src/ |
D | mqueue.c | 149 size_t nameLen; in SaveMqueueName() local 151 nameLen = strlen(mqName); /* sys_mq_open has checked name and name length */ in SaveMqueueName() 152 mqueueCB->mq_name = (char *)LOS_MemAlloc(OS_SYS_MEM_ADDR, nameLen + 1); in SaveMqueueName() 158 if (strncpy_s(mqueueCB->mq_name, (nameLen + 1), mqName, nameLen) != EOK) { in SaveMqueueName() 164 mqueueCB->mq_name[nameLen] = '\0'; in SaveMqueueName()
|
/kernel/liteos_m/components/dynlink/ |
D | los_dynlink.c | 223 UINT32 allocSize, nameLen; in OsLoadInit() local 227 nameLen = strlen(fileName); in OsLoadInit() 228 if (nameLen > PATH_MAX) { in OsLoadInit() 233 allocSize = sizeof(DynSharedObj) + nameLen + 1; in OsLoadInit() 276 (void)strcpy_s(dso->buf, nameLen + 1, fileName); in OsLoadInit()
|
/kernel/liteos_a/fs/proc/include/ |
D | proc_fs.h | 121 int nameLen; member
|
/kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
D | u_generic.h | 42 uint32_t nameLen; member
|
D | f_generic.c | 1475 if (newfn.nameLen > MAX_NAMELEN) { in usbfn_ioctl() 1478 memcpy(ffs->dev_name, newfn.name, newfn.nameLen); in usbfn_ioctl()
|
/kernel/liteos_a/fs/proc/os_adapt/ |
D | proc_vfs.c | 69 if (len != pn->nameLen) { in EntryMatch()
|
/kernel/linux/patches/linux-5.10/unionpi_tiger_pacth/ |
D | linux-5.10.patch | 16584 - memcpy(ffs->dev_name, newfn.name, newfn.nameLen); 18935 - uint32_t nameLen;
|