/kernel/liteos_a/fs/vfs/operation/ |
H A D | fullpath.c | 148 int namelen; in vfs_normalize_path_parame_check() local 162 namelen = vfs_strnlen(filename, PATH_MAX); in vfs_normalize_path_parame_check() 163 if (!namelen) { in vfs_normalize_path_parame_check() 166 } else if (namelen >= PATH_MAX) { in vfs_normalize_path_parame_check() 171 for (name = (char *)filename + namelen; ((name != filename) && (*name != '/')); name--) { in vfs_normalize_path_parame_check() 178 return namelen; in vfs_normalize_path_parame_check() 181 static char *vfs_not_absolute_path(const char *directory, const char *filename, char **pathname, int namelen) in vfs_not_absolute_path() argument 188 if ((namelen > 1) && (filename[0] == '.') && (filename[1] == '/')) { in vfs_not_absolute_path() 192 fullpath = (char *)malloc(strlen(directory) + namelen + 2); in vfs_not_absolute_path() 201 ret = snprintf_s(fullpath, strlen(directory) + namelen in vfs_not_absolute_path() 213 vfs_normalize_fullpath(const char *directory, const char *filename, char **pathname, int namelen) vfs_normalize_fullpath() argument 247 int namelen; vfs_normalize_path() local [all...] |
/kernel/liteos_m/components/shell/src/cmds/ |
H A D | fullpath.c | 137 INT32 namelen; in VfsNormalizePathParameCheck() local 151 namelen = VfsStrnlen(filename, PATH_MAX); in VfsNormalizePathParameCheck() 152 if (!namelen) { in VfsNormalizePathParameCheck() 155 } else if (namelen >= PATH_MAX) { in VfsNormalizePathParameCheck() 160 for (name = (CHAR *)filename + namelen; ((name != filename) && (*name != '/')); name--) { in VfsNormalizePathParameCheck() 167 return namelen; in VfsNormalizePathParameCheck() 170 STATIC CHAR *VfsNotAbsolutePath(const CHAR *directory, const CHAR *filename, CHAR **pathname, INT32 namelen) in VfsNotAbsolutePath() argument 177 if ((namelen > 1) && (filename[0] == '.') && (filename[1] == '/')) { in VfsNotAbsolutePath() 181 fullpath = (CHAR *)malloc(strlen(directory) + namelen + 2); /* 2, size of "./" */ in VfsNotAbsolutePath() 189 ret = snprintf_s(fullpath, strlen(directory) + namelen in VfsNotAbsolutePath() 201 VfsNormalizeFullpath(const CHAR *directory, const CHAR *filename, CHAR **pathname, INT32 namelen) VfsNormalizeFullpath() argument 235 INT32 namelen; VfsNormalizePath() local [all...] |
/kernel/linux/linux-5.10/drivers/xen/xenfs/ |
H A D | xensyms.c | 19 uint32_t namelen; member 29 memset(xs->name, 0, xs->namelen); in xensyms_next_sym() 30 symdata->namelen = xs->namelen; in xensyms_next_sym() 42 if (unlikely(symdata->namelen > xs->namelen)) { in xensyms_next_sym() 45 xs->namelen = symdata->namelen; in xensyms_next_sym() 46 xs->name = kzalloc(xs->namelen, GFP_KERNEL); in xensyms_next_sym() 125 xs->namelen in xensyms_open() [all...] |
/kernel/linux/linux-6.6/drivers/xen/xenfs/ |
H A D | xensyms.c | 19 uint32_t namelen; member 29 memset(xs->name, 0, xs->namelen); in xensyms_next_sym() 30 symdata->namelen = xs->namelen; in xensyms_next_sym() 42 if (unlikely(symdata->namelen > xs->namelen)) { in xensyms_next_sym() 45 xs->namelen = symdata->namelen; in xensyms_next_sym() 46 xs->name = kzalloc(xs->namelen, GFP_KERNEL); in xensyms_next_sym() 125 xs->namelen in xensyms_open() [all...] |
/kernel/liteos_a/syscall/ |
H A D | net_syscall.c | 78 int SysBind(int s, const struct sockaddr *name, socklen_t namelen) in SysBind() argument 83 CHECK_ASPACE(name, namelen); in SysBind() 85 DUP_FROM_USER(name, namelen); in SysBind() 91 ret = bind(s, name, namelen); in SysBind() 101 int SysConnect(int s, const struct sockaddr *name, socklen_t namelen) in SysConnect() argument 106 CHECK_ASPACE(name, namelen); in SysConnect() 108 DUP_FROM_USER(name, namelen); in SysConnect() 114 ret = connect(s, name, namelen); in SysConnect() 164 int SysGetSockName(int s, struct sockaddr *name, socklen_t *namelen) in SysGetSockName() argument 170 CHECK_ASPACE(namelen, sizeo in SysGetSockName() 193 SysGetPeerName(int s, struct sockaddr *name, socklen_t *namelen) SysGetPeerName() argument [all...] |
/kernel/liteos_a/compat/posix/src/ |
H A D | socket.c | 48 int bind(int s, const struct sockaddr *name, socklen_t namelen) in bind() argument 51 if (namelen < sizeof(*name)) { in bind() 55 return lwip_bind(s, name, namelen); in bind() 63 int getpeername(int s, struct sockaddr *name, socklen_t *namelen) in getpeername() argument 66 CHECK_NULL_PTR(namelen); in getpeername() 67 return lwip_getpeername(s, name, namelen); in getpeername() 70 int getsockname(int s, struct sockaddr *name, socklen_t *namelen) in getsockname() argument 73 CHECK_NULL_PTR(namelen); in getsockname() 74 return lwip_getsockname(s, name, namelen); in getsockname() 92 int connect(int s, const struct sockaddr *name, socklen_t namelen) in connect() argument [all...] |
/kernel/linux/linux-5.10/net/dns_resolver/ |
H A D | dns_query.c | 55 * @namelen: Length of name 75 const char *type, const char *name, size_t namelen, in dns_query() 87 type, (int)namelen, (int)namelen, name, namelen, options); in dns_query() 89 if (!name || namelen == 0) in dns_query() 102 if (namelen < 3 || namelen > 255) in dns_query() 104 desclen += namelen + 1; in dns_query() 116 memcpy(cp, name, namelen); in dns_query() 74 dns_query(struct net *net, const char *type, const char *name, size_t namelen, const char *options, char **_result, time64_t *_expiry, bool invalidate) dns_query() argument [all...] |
/kernel/linux/linux-6.6/net/dns_resolver/ |
H A D | dns_query.c | 55 * @namelen: Length of name 75 const char *type, const char *name, size_t namelen, in dns_query() 87 type, (int)namelen, (int)namelen, name, namelen, options); in dns_query() 89 if (!name || namelen == 0) in dns_query() 102 if (namelen < 3 || namelen > 255) in dns_query() 104 desclen += namelen + 1; in dns_query() 116 memcpy(cp, name, namelen); in dns_query() 74 dns_query(struct net *net, const char *type, const char *name, size_t namelen, const char *options, char **_result, time64_t *_expiry, bool invalidate) dns_query() argument [all...] |
/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_xattr.c | 28 .namelen = strlen(name), in xfs_xattr_get() 50 .namelen = strlen(name), in xfs_xattr_set() 100 int namelen) in __xfs_xattr_put_listent() 111 arraytop = context->count + prefix_len + namelen + 1; in __xfs_xattr_put_listent() 120 strncpy(offset, (char *)name, namelen); /* real name */ in __xfs_xattr_put_listent() 121 offset += namelen; in __xfs_xattr_put_listent() 125 context->count += prefix_len + namelen + 1; in __xfs_xattr_put_listent() 134 int namelen, in xfs_xattr_put_listent() 144 if (namelen == SGI_ACL_FILE_SIZE && in xfs_xattr_put_listent() 152 } else if (namelen in xfs_xattr_put_listent() 95 __xfs_xattr_put_listent( struct xfs_attr_list_context *context, char *prefix, int prefix_len, unsigned char *name, int namelen) __xfs_xattr_put_listent() argument 130 xfs_xattr_put_listent( struct xfs_attr_list_context *context, int flags, unsigned char *name, int namelen, int valuelen) xfs_xattr_put_listent() argument [all...] |
/kernel/linux/linux-5.10/fs/dlm/ |
H A D | dir.c | 66 uint16_t namelen; in dlm_recover_directory() local 99 * pick namelen/name pairs out of received buffer in dlm_recover_directory() 114 namelen = be16_to_cpu(v); in dlm_recover_directory() 118 /* namelen of 0xFFFFF marks end of names for in dlm_recover_directory() 119 this node; namelen of 0 marks end of the in dlm_recover_directory() 122 if (namelen == 0xFFFF) in dlm_recover_directory() 124 if (!namelen) in dlm_recover_directory() 127 if (namelen > left) in dlm_recover_directory() 130 if (namelen > DLM_RESNAME_MAXLEN) in dlm_recover_directory() 134 b, namelen, in dlm_recover_directory() [all...] |
/kernel/linux/linux-6.6/fs/dlm/ |
H A D | dir.c | 66 uint16_t namelen; in dlm_recover_directory() local 100 * pick namelen/name pairs out of received buffer in dlm_recover_directory() 115 namelen = be16_to_cpu(v); in dlm_recover_directory() 119 /* namelen of 0xFFFFF marks end of names for in dlm_recover_directory() 120 this node; namelen of 0 marks end of the in dlm_recover_directory() 123 if (namelen == 0xFFFF) in dlm_recover_directory() 125 if (!namelen) in dlm_recover_directory() 128 if (namelen > left) in dlm_recover_directory() 131 if (namelen > DLM_RESNAME_MAXLEN) in dlm_recover_directory() 135 b, namelen, in dlm_recover_directory() [all...] |
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_dir2_sf.c | 48 count += sizeof(struct xfs_dir2_sf_entry); /* namelen + offset */ in xfs_dir2_sf_entsize() 62 return (void *)sfep + xfs_dir2_sf_entsize(mp, hdr, sfep->namelen); in xfs_dir2_sf_nextentry() 77 uint8_t *from = sfep->name + sfep->namelen; in xfs_dir2_sf_get_ino() 94 uint8_t *to = sfep->name + sfep->namelen; in xfs_dir2_sf_put_ino() 139 uint8_t ftype = sfep->name[sfep->namelen]; in xfs_dir2_sf_get_ftype() 157 sfep->name[sfep->namelen] = ftype; in xfs_dir2_sf_put_ftype() 182 int namelen; /* total name bytes */ in xfs_dir2_block_sfsize() local 192 * if there is a filetype field, add the extra byte to the namelen in xfs_dir2_block_sfsize() 197 count = i8count = namelen = 0; in xfs_dir2_block_sfsize() 217 isdot = dep->namelen in xfs_dir2_block_sfsize() [all...] |
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_dir2_sf.c | 48 count += sizeof(struct xfs_dir2_sf_entry); /* namelen + offset */ in xfs_dir2_sf_entsize() 62 return (void *)sfep + xfs_dir2_sf_entsize(mp, hdr, sfep->namelen); in xfs_dir2_sf_nextentry() 77 uint8_t *from = sfep->name + sfep->namelen; in xfs_dir2_sf_get_ino() 94 uint8_t *to = sfep->name + sfep->namelen; in xfs_dir2_sf_put_ino() 139 uint8_t ftype = sfep->name[sfep->namelen]; in xfs_dir2_sf_get_ftype() 157 sfep->name[sfep->namelen] = ftype; in xfs_dir2_sf_put_ftype() 182 int namelen; /* total name bytes */ in xfs_dir2_block_sfsize() local 192 * if there is a filetype field, add the extra byte to the namelen in xfs_dir2_block_sfsize() 197 count = i8count = namelen = 0; in xfs_dir2_block_sfsize() 217 isdot = dep->namelen in xfs_dir2_block_sfsize() [all...] |
/kernel/linux/linux-5.10/fs/efs/ |
H A D | dir.c | 65 int namelen; in efs_readdir() local 73 namelen = dirslot->namelen; in efs_readdir() 75 pr_debug("%s(): block %d slot %d/%d: inode %u, name \"%s\", namelen %u\n", in efs_readdir() 77 inodenum, nameptr, namelen); in efs_readdir() 78 if (!namelen) in efs_readdir() 84 if (nameptr - (char *) dirblock + namelen > EFS_DIRBSIZE) { in efs_readdir() 91 if (!dir_emit(ctx, nameptr, namelen, inodenum, DT_UNKNOWN)) { in efs_readdir()
|
/kernel/linux/linux-6.6/fs/efs/ |
H A D | dir.c | 65 int namelen; in efs_readdir() local 73 namelen = dirslot->namelen; in efs_readdir() 75 pr_debug("%s(): block %d slot %d/%d: inode %u, name \"%s\", namelen %u\n", in efs_readdir() 77 inodenum, nameptr, namelen); in efs_readdir() 78 if (!namelen) in efs_readdir() 84 if (nameptr - (char *) dirblock + namelen > EFS_DIRBSIZE) { in efs_readdir() 91 if (!dir_emit(ctx, nameptr, namelen, inodenum, DT_UNKNOWN)) { in efs_readdir()
|
/kernel/linux/linux-5.10/fs/ocfs2/dlm/ |
H A D | dlmmaster.c | 58 unsigned int namelen) in dlm_mle_equal() 63 if (namelen != mle->mnamelen || in dlm_mle_equal() 64 memcmp(name, mle->mname, namelen) != 0) in dlm_mle_equal() 80 unsigned int namelen); 85 char *name, unsigned int namelen); 103 const char *name, unsigned int namelen, 255 unsigned int namelen) in dlm_init_mle() 286 memcpy(mle->mname, name, namelen); in dlm_init_mle() 287 mle->mnamelen = namelen; in dlm_init_mle() 288 mle->mnamehash = dlm_lockid_hash(name, namelen); in dlm_init_mle() 55 dlm_mle_equal(struct dlm_ctxt *dlm, struct dlm_master_list_entry *mle, const char *name, unsigned int namelen) dlm_mle_equal() argument 250 dlm_init_mle(struct dlm_master_list_entry *mle, enum dlm_mle_type type, struct dlm_ctxt *dlm, struct dlm_lock_resource *res, const char *name, unsigned int namelen) dlm_init_mle() argument 324 dlm_find_mle(struct dlm_ctxt *dlm, struct dlm_master_list_entry **mle, char *name, unsigned int namelen) dlm_find_mle() argument 525 dlm_init_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, const char *name, unsigned int namelen) dlm_init_lockres() argument 580 dlm_new_lockres(struct dlm_ctxt *dlm, const char *name, unsigned int namelen) dlm_new_lockres() argument 703 dlm_get_lock_resource(struct dlm_ctxt *dlm, const char *lockid, int namelen, int flags) dlm_get_lock_resource() argument 1411 unsigned int namelen, hash; dlm_master_request_handler() local 1662 unsigned int namelen = res->lockname.len; dlm_do_assert_master() local 1769 unsigned int namelen, hash; dlm_assert_master_handler() local 2222 unsigned int namelen; dlm_drop_lockres_ref() local 2258 unsigned int namelen; dlm_deref_lockres_handler() local 2353 unsigned int namelen; dlm_deref_lockres_done_handler() local 2416 unsigned int namelen; dlm_drop_lockres_ref_done() local 2550 unsigned int namelen; dlm_migrate_lockres() local 3109 unsigned int namelen, hash; dlm_migrate_request_handler() local 3181 dlm_add_migration_mle(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_master_list_entry *mle, struct dlm_master_list_entry **oldmle, const char *name, unsigned int namelen, u8 new_master, u8 master) dlm_add_migration_mle() argument [all...] |
/kernel/linux/linux-6.6/fs/ocfs2/dlm/ |
H A D | dlmmaster.c | 56 unsigned int namelen) in dlm_mle_equal() 61 if (namelen != mle->mnamelen || in dlm_mle_equal() 62 memcmp(name, mle->mname, namelen) != 0) in dlm_mle_equal() 78 unsigned int namelen); 83 char *name, unsigned int namelen); 101 const char *name, unsigned int namelen, 253 unsigned int namelen) in dlm_init_mle() 284 memcpy(mle->mname, name, namelen); in dlm_init_mle() 285 mle->mnamelen = namelen; in dlm_init_mle() 286 mle->mnamehash = dlm_lockid_hash(name, namelen); in dlm_init_mle() 53 dlm_mle_equal(struct dlm_ctxt *dlm, struct dlm_master_list_entry *mle, const char *name, unsigned int namelen) dlm_mle_equal() argument 248 dlm_init_mle(struct dlm_master_list_entry *mle, enum dlm_mle_type type, struct dlm_ctxt *dlm, struct dlm_lock_resource *res, const char *name, unsigned int namelen) dlm_init_mle() argument 322 dlm_find_mle(struct dlm_ctxt *dlm, struct dlm_master_list_entry **mle, char *name, unsigned int namelen) dlm_find_mle() argument 523 dlm_init_lockres(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, const char *name, unsigned int namelen) dlm_init_lockres() argument 578 dlm_new_lockres(struct dlm_ctxt *dlm, const char *name, unsigned int namelen) dlm_new_lockres() argument 701 dlm_get_lock_resource(struct dlm_ctxt *dlm, const char *lockid, int namelen, int flags) dlm_get_lock_resource() argument 1409 unsigned int namelen, hash; dlm_master_request_handler() local 1660 unsigned int namelen = res->lockname.len; dlm_do_assert_master() local 1767 unsigned int namelen, hash; dlm_assert_master_handler() local 2220 unsigned int namelen; dlm_drop_lockres_ref() local 2256 unsigned int namelen; dlm_deref_lockres_handler() local 2351 unsigned int namelen; dlm_deref_lockres_done_handler() local 2414 unsigned int namelen; dlm_drop_lockres_ref_done() local 2548 unsigned int namelen; dlm_migrate_lockres() local 3107 unsigned int namelen, hash; dlm_migrate_request_handler() local 3179 dlm_add_migration_mle(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_master_list_entry *mle, struct dlm_master_list_entry **oldmle, const char *name, unsigned int namelen, u8 new_master, u8 master) dlm_add_migration_mle() argument [all...] |
/kernel/linux/linux-5.10/fs/jffs2/ |
H A D | write.c | 207 uint32_t namelen, int alloc_mode) in jffs2_write_dirent() 226 if (strnlen(name, namelen) != namelen) { in jffs2_write_dirent() 240 vecs[1].iov_len = namelen; in jffs2_write_dirent() 242 fd = jffs2_alloc_full_dirent(namelen+1); in jffs2_write_dirent() 248 fd->nhash = full_name_hash(NULL, name, namelen); in jffs2_write_dirent() 250 memcpy(fd->name, name, namelen); in jffs2_write_dirent() 251 fd->name[namelen]=0; in jffs2_write_dirent() 270 if (ret || (retlen != sizeof(*rd) + namelen)) { in jffs2_write_dirent() 272 sizeof(*rd) + namelen, flash_of in jffs2_write_dirent() 205 jffs2_write_dirent(struct jffs2_sb_info *c, struct jffs2_inode_info *f, struct jffs2_raw_dirent *rd, const unsigned char *name, uint32_t namelen, int alloc_mode) jffs2_write_dirent() argument 547 jffs2_do_unlink(struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f, const char *name, int namelen, struct jffs2_inode_info *dead_f, uint32_t time) jffs2_do_unlink() argument 669 jffs2_do_link(struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f, uint32_t ino, uint8_t type, const char *name, int namelen, uint32_t time) jffs2_do_link() argument [all...] |
/kernel/linux/linux-6.6/fs/jffs2/ |
H A D | write.c | 207 uint32_t namelen, int alloc_mode) in jffs2_write_dirent() 226 if (strnlen(name, namelen) != namelen) { in jffs2_write_dirent() 240 vecs[1].iov_len = namelen; in jffs2_write_dirent() 242 fd = jffs2_alloc_full_dirent(namelen+1); in jffs2_write_dirent() 248 fd->nhash = full_name_hash(NULL, name, namelen); in jffs2_write_dirent() 250 memcpy(fd->name, name, namelen); in jffs2_write_dirent() 251 fd->name[namelen]=0; in jffs2_write_dirent() 270 if (ret || (retlen != sizeof(*rd) + namelen)) { in jffs2_write_dirent() 272 sizeof(*rd) + namelen, flash_of in jffs2_write_dirent() 205 jffs2_write_dirent(struct jffs2_sb_info *c, struct jffs2_inode_info *f, struct jffs2_raw_dirent *rd, const unsigned char *name, uint32_t namelen, int alloc_mode) jffs2_write_dirent() argument 547 jffs2_do_unlink(struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f, const char *name, int namelen, struct jffs2_inode_info *dead_f, uint32_t time) jffs2_do_unlink() argument 669 jffs2_do_link(struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f, uint32_t ino, uint8_t type, const char *name, int namelen, uint32_t time) jffs2_do_link() argument [all...] |
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_xattr.c | 133 .namelen = strlen(name), in xfs_xattr_get() 156 .namelen = strlen(name), in xfs_xattr_set() 202 int namelen) in __xfs_xattr_put_listent() 213 arraytop = context->count + prefix_len + namelen + 1; in __xfs_xattr_put_listent() 222 strncpy(offset, (char *)name, namelen); /* real name */ in __xfs_xattr_put_listent() 223 offset += namelen; in __xfs_xattr_put_listent() 227 context->count += prefix_len + namelen + 1; in __xfs_xattr_put_listent() 236 int namelen, in xfs_xattr_put_listent() 246 if (namelen == SGI_ACL_FILE_SIZE && in xfs_xattr_put_listent() 254 } else if (namelen in xfs_xattr_put_listent() 197 __xfs_xattr_put_listent( struct xfs_attr_list_context *context, char *prefix, int prefix_len, unsigned char *name, int namelen) __xfs_xattr_put_listent() argument 232 xfs_xattr_put_listent( struct xfs_attr_list_context *context, int flags, unsigned char *name, int namelen, int valuelen) xfs_xattr_put_listent() argument [all...] |
/kernel/linux/linux-5.10/fs/nfs/ |
H A D | nfs4idmap.c | 165 int nfs_map_string_to_numeric(const char *name, size_t namelen, __u32 *res) in nfs_map_string_to_numeric() argument 170 if (memchr(name, '@', namelen) != NULL || namelen >= sizeof(buf)) in nfs_map_string_to_numeric() 172 memcpy(buf, name, namelen); in nfs_map_string_to_numeric() 173 buf[namelen] = '\0'; in nfs_map_string_to_numeric() 258 static ssize_t nfs_idmap_get_desc(const char *name, size_t namelen, in nfs_idmap_get_desc() argument 262 size_t desclen = typelen + namelen + 2; in nfs_idmap_get_desc() 273 memcpy(cp, name, namelen); in nfs_idmap_get_desc() 274 cp += namelen; in nfs_idmap_get_desc() 279 static struct key *nfs_idmap_request_key(const char *name, size_t namelen, in nfs_idmap_request_key() argument 305 nfs_idmap_get_key(const char *name, size_t namelen, const char *type, void *data, size_t data_size, struct idmap *idmap) nfs_idmap_get_key() argument 365 nfs_idmap_lookup_id(const char *name, size_t namelen, const char *type, __u32 *id, struct idmap *idmap) nfs_idmap_lookup_id() argument 745 nfs_map_name_to_uid(const struct nfs_server *server, const char *name, size_t namelen, kuid_t *uid) nfs_map_name_to_uid() argument 762 nfs_map_group_to_gid(const struct nfs_server *server, const char *name, size_t namelen, kgid_t *gid) nfs_map_group_to_gid() argument [all...] |
/kernel/linux/linux-6.6/fs/nfs/ |
H A D | nfs4idmap.c | 165 int nfs_map_string_to_numeric(const char *name, size_t namelen, __u32 *res) in nfs_map_string_to_numeric() argument 170 if (memchr(name, '@', namelen) != NULL || namelen >= sizeof(buf)) in nfs_map_string_to_numeric() 172 memcpy(buf, name, namelen); in nfs_map_string_to_numeric() 173 buf[namelen] = '\0'; in nfs_map_string_to_numeric() 258 static ssize_t nfs_idmap_get_desc(const char *name, size_t namelen, in nfs_idmap_get_desc() argument 262 size_t desclen = typelen + namelen + 2; in nfs_idmap_get_desc() 273 memcpy(cp, name, namelen); in nfs_idmap_get_desc() 274 cp += namelen; in nfs_idmap_get_desc() 279 static struct key *nfs_idmap_request_key(const char *name, size_t namelen, in nfs_idmap_request_key() argument 305 nfs_idmap_get_key(const char *name, size_t namelen, const char *type, void *data, size_t data_size, struct idmap *idmap) nfs_idmap_get_key() argument 365 nfs_idmap_lookup_id(const char *name, size_t namelen, const char *type, __u32 *id, struct idmap *idmap) nfs_idmap_lookup_id() argument 745 nfs_map_name_to_uid(const struct nfs_server *server, const char *name, size_t namelen, kuid_t *uid) nfs_map_name_to_uid() argument 762 nfs_map_group_to_gid(const struct nfs_server *server, const char *name, size_t namelen, kgid_t *gid) nfs_map_group_to_gid() argument [all...] |
/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | dir.h | 43 int ocfs2_find_entry(const char *name, int namelen, 51 const char *name, int namelen, 71 int namelen); 75 int namelen, 80 int namelen, u64 *blkno); 87 int namelen,
|
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A D | dir.h | 41 int ocfs2_find_entry(const char *name, int namelen, 49 const char *name, int namelen, 69 int namelen); 73 int namelen, 78 int namelen, u64 *blkno); 85 int namelen,
|
/kernel/linux/linux-5.10/fs/omfs/ |
H A D | dir.c | 12 static int omfs_hash(const char *name, int namelen, int mod) in omfs_hash() argument 15 for (i = 0; i < namelen; i++) in omfs_hash() 25 const char *name, int namelen, int *ofs) in omfs_get_bucket() 28 int bucket = omfs_hash(name, namelen, nbuckets); in omfs_get_bucket() 35 const char *name, int namelen, in omfs_scan_list() 56 if (strncmp(oi->i_name, name, namelen) == 0) in omfs_scan_list() 68 const char *name, int namelen) in omfs_find_entry() 74 bh = omfs_get_bucket(dir, name, namelen, &ofs); in omfs_find_entry() 81 return omfs_scan_list(dir, block, name, namelen, &dummy); in omfs_find_entry() 115 int namelen in omfs_add_link() local 24 omfs_get_bucket(struct inode *dir, const char *name, int namelen, int *ofs) omfs_get_bucket() argument 34 omfs_scan_list(struct inode *dir, u64 block, const char *name, int namelen, u64 *prev_block) omfs_scan_list() argument 67 omfs_find_entry(struct inode *dir, const char *name, int namelen) omfs_find_entry() argument 161 int namelen = dentry->d_name.len; omfs_delete_entry() local [all...] |