Home
last modified time | relevance | path

Searched refs:namelen (Results 1 – 7 of 7) sorted by relevance

/DragonOS-0.1.2/kernel/src/exception/
Dirq.c169 int namelen = sizeof(strlen(irq_name) + 1); in irq_register() local
170 p->irq_name = (char *)kmalloc(namelen, 0); in irq_register()
171 memset(p->irq_name, 0, namelen); in irq_register()
172 strncpy(p->irq_name, irq_name, namelen); in irq_register()
/DragonOS-0.1.2/kernel/src/filesystem/devfs/
Dchardev.c57 int namelen = strlen(devname); in __devfs_chardev_register() local
59 struct vfs_dir_entry_t *dentry = vfs_alloc_dentry(namelen + 1); in __devfs_chardev_register()
/DragonOS-0.1.2/kernel/src/filesystem/fat32/
Dfat_ent.h68 int fat32_check_name_available(const char *name, int namelen, int8_t reserved);
Dfat_ent.c274 int fat32_check_name_available(const char *name, int namelen, int8_t reserved) in fat32_check_name_available() argument
276 if (namelen > 255 || namelen <= 0) in fat32_check_name_available()
/DragonOS-0.1.2/kernel/src/filesystem/VFS/
DVFS.h182 typedef int (*vfs_filldir_t)(void *buf, ino_t d_ino, char *name, int namelen, unsigned char type, o…
228 int vfs_fill_dirent(void *buf, ino_t d_ino, char *name, int namelen, unsigned char type, off_t offs…
DVFS.c215 int vfs_fill_dirent(void *buf, ino_t d_ino, char *name, int namelen, unsigned char type, off_t offs… in vfs_fill_dirent() argument
220 if (!(verify_area((uint64_t)buf, sizeof(struct dirent) + namelen))) in vfs_fill_dirent()
224 memset(buf, 0, sizeof(struct dirent) + namelen); in vfs_fill_dirent()
226 memcpy(dent->d_name, name, namelen); in vfs_fill_dirent()
227 dent->d_name[namelen] = '\0'; in vfs_fill_dirent()
235 return sizeof(struct dirent) + namelen; in vfs_fill_dirent()
/DragonOS-0.1.2/kernel/src/filesystem/procfs/
Dprocfs.c20 static int __check_name_available(const char *name, int namelen, int8_t reserved);
320 static int __check_name_available(const char *name, int namelen, int8_t reserved) in __check_name_available() argument
322 if (namelen > 255 || namelen <= 0) in __check_name_available()