Home
last modified time | relevance | path

Searched refs:nameLen (Results 1 – 15 of 15) sorted by relevance

/kernel/liteos_a/testsuites/unittest/extended/liteipc/
Dsmgr_demo.cpp109 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 …]
Dsmgr_demo.h38 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/
Dpath_cache.c75 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()
Dvnode.c561 result = strncpy_s(dir->fd_dir[idx].d_name, dstNameSize, item->name, item->nameLen); in VnodeReaddir()
/kernel/liteos_a/fs/proc/src/
Dproc_file.c51 .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/
Dmqueue.c160 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/
Ddisk.c107 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/
Dpath_cache.h44 uint8_t nameLen; /* length of path component */ member
/kernel/liteos_a/compat/posix/src/
Dmqueue.c149 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/
Dlos_dynlink.c223 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/
Dproc_fs.h121 int nameLen; member
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
Du_generic.h42 uint32_t nameLen; member
Df_generic.c1475 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/
Dproc_vfs.c69 if (len != pn->nameLen) { in EntryMatch()
/kernel/linux/patches/linux-5.10/unionpi_tiger_pacth/
Dlinux-5.10.patch16584 - memcpy(ffs->dev_name, newfn.name, newfn.nameLen);
18935 - uint32_t nameLen;