/Linux-v6.6/fs/ |
D | readdir.c | 179 static bool fillonedir(struct dir_context *ctx, const char *name, int namlen, in fillonedir() argument 189 buf->result = verify_dirent_name(name, namlen); in fillonedir() 200 (unsigned long)(dirent->d_name + namlen + 1) - in fillonedir() 205 unsafe_put_user(namlen, &dirent->d_namlen, efault_end); in fillonedir() 206 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in fillonedir() 258 static bool filldir(struct dir_context *ctx, const char *name, int namlen, in filldir() argument 265 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, in filldir() 269 buf->error = verify_dirent_name(name, namlen); in filldir() 293 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in filldir() 346 static bool filldir64(struct dir_context *ctx, const char *name, int namlen, in filldir64() argument [all …]
|
/Linux-v6.6/fs/jfs/ |
D | jfs_dtree.c | 594 ciKey.namlen = key->namlen; in dtSearch() 841 n = NDTLEAF(name->namlen); in dtInsert() 845 n = NDTLEAF_LEGACY(name->namlen); in dtInsert() 1190 key.name[key.namlen] = 0; in dtSplitUp() 1196 n = NDTINTERNAL(key.namlen); in dtSplitUp() 1201 n = NDTINTERNAL(key.namlen); in dtSplitUp() 1514 n = NDTLEAF(ldtentry->namlen); in dtSplitPage() 1517 namlen); in dtSplitPage() 1522 n = NDTINTERNAL(idtentry->namlen); in dtSplitPage() 2037 s->namlen = 0; in dtSplitRoot() [all …]
|
D | jfs_unicode.c | 116 uniName->namlen = jfs_strtoUCS(uniName->name, dentry->d_name.name, in get_UCSname() 119 if (uniName->namlen < 0) { in get_UCSname() 121 return uniName->namlen; in get_UCSname()
|
D | jfs_dtree.h | 56 u8 namlen; /* 1: */ member 75 u8 namlen; /* 1: */ member
|
D | jfs_types.h | 123 int namlen; member
|
/Linux-v6.6/fs/nfsd/ |
D | nfs3xdr.c | 984 const char *name, int namlen, u64 ino) in compose_entry_fh() argument 993 if (isdotent(name, namlen)) { in compose_entry_fh() 994 if (namlen == 2) { in compose_entry_fh() 1007 dchild = lookup_positive_unlocked(name, dparent, namlen); in compose_entry_fh() 1041 int namlen, loff_t offset, u64 ino) in svcxdr_encode_entry3_common() argument 1052 if (xdr_stream_encode_opaque(xdr, name, min(namlen, NFS3_MAXNAMLEN)) < 0) in svcxdr_encode_entry3_common() 1080 int nfs3svc_encode_entry3(void *data, const char *name, int namlen, in nfs3svc_encode_entry3() argument 1092 if (!svcxdr_encode_entry3_common(resp, name, namlen, offset, ino)) in nfs3svc_encode_entry3() 1108 int namlen, u64 ino) in svcxdr_encode_entry3_plus() argument 1116 if (compose_entry_fh(resp, fhp, name, namlen, ino) != nfs_ok) in svcxdr_encode_entry3_plus() [all …]
|
D | nfsxdr.c | 576 int namlen, loff_t offset, u64 ino) in svcxdr_encode_entry_common() argument 587 if (xdr_stream_encode_opaque(xdr, name, min(namlen, NFS2_MAXNAMLEN)) < 0) in svcxdr_encode_entry_common() 615 int nfssvc_encode_entry(void *data, const char *name, int namlen, in nfssvc_encode_entry() argument 627 if (!svcxdr_encode_entry_common(resp, name, namlen, offset, ino)) in nfssvc_encode_entry()
|
D | xdr3.h | 304 int nfs3svc_encode_entry3(void *data, const char *name, int namlen, 306 int nfs3svc_encode_entryplus3(void *data, const char *name, int namlen,
|
D | vfs.c | 1994 int namlen; member 2007 int namlen, loff_t offset, u64 ino, in nfsd_buffered_filldir() argument 2015 reclen = ALIGN(sizeof(struct buffered_dirent) + namlen, sizeof(u64)); in nfsd_buffered_filldir() 2021 de->namlen = namlen; in nfsd_buffered_filldir() 2025 memcpy(de->name, name, namlen); in nfsd_buffered_filldir() 2072 if (func(cdp, de->name, de->namlen, de->offset, in nfsd_buffered_readdir() 2079 trace_nfsd_dirent(fhp, de->ino, de->name, de->namlen); in nfsd_buffered_readdir() 2081 reclen = ALIGN(sizeof(*de) + de->namlen, in nfsd_buffered_readdir()
|
D | xdr.h | 164 int nfssvc_encode_entry(void *data, const char *name, int namlen,
|
D | nfs4recover.c | 270 nfsd4_build_namelist(struct dir_context *__ctx, const char *name, int namlen, in nfsd4_build_namelist() argument 277 if (namlen != HEXDIR_LEN - 1) in nfsd4_build_namelist() 339 nfsd4_unlink_clid_dir(char *name, int namlen, struct nfsd_net *nn) in nfsd4_unlink_clid_dir() argument 344 dprintk("NFSD: nfsd4_unlink_clid_dir. name %.*s\n", namlen, name); in nfsd4_unlink_clid_dir() 348 dentry = lookup_one_len(name, dir, namlen); in nfsd4_unlink_clid_dir()
|
D | trace.h | 476 int namlen), 477 TP_ARGS(fhp, ino, name, namlen), 481 __string_len(name, name, namlen) 486 __assign_str_len(name, name, namlen)
|
D | nfs4xdr.c | 3534 const char *name, int namlen) in nfsd4_encode_dirent_fattr() argument 3541 dentry = lookup_positive_unlocked(name, cd->rd_fhp->fh_dentry, namlen); in nfsd4_encode_dirent_fattr() 3603 nfsd4_encode_dirent(void *ccdv, const char *name, int namlen, in nfsd4_encode_dirent() argument 3618 if (name && isdotent(name, namlen)) { in nfsd4_encode_dirent() 3634 p = xdr_reserve_space(xdr, 3*4 + namlen); in nfsd4_encode_dirent() 3638 p = xdr_encode_array(p, name, namlen); /* name length & name */ in nfsd4_encode_dirent() 3640 nfserr = nfsd4_encode_dirent_fattr(xdr, cd, name, namlen); in nfsd4_encode_dirent() 3688 name_and_cookie = 4 + 4 * XDR_QUADLEN(namlen) + 8; in nfsd4_encode_dirent()
|
/Linux-v6.6/include/uapi/linux/ |
D | nfs_mount.h | 42 int namlen; /* 2 */ member
|
/Linux-v6.6/arch/alpha/kernel/ |
D | osf_sys.c | 112 osf_filldir(struct dir_context *ctx, const char *name, int namlen, in osf_filldir() argument 118 unsigned int reclen = ALIGN(NAME_OFFSET + namlen + 1, sizeof(u32)); in osf_filldir() 136 put_user(namlen, &dirent->d_namlen) || in osf_filldir() 138 copy_to_user(dirent->d_name, name, namlen) || in osf_filldir() 139 put_user(0, dirent->d_name + namlen)) in osf_filldir()
|
/Linux-v6.6/fs/smb/server/ |
D | vfs.c | 1098 static bool __dir_empty(struct dir_context *ctx, const char *name, int namlen, in __dir_empty() argument 1134 int namlen, loff_t offset, u64 ino, in __caseless_lookup() argument 1142 if (buf->used != namlen) in __caseless_lookup() 1148 .len = namlen}; in __caseless_lookup() 1153 cmp = strncasecmp((char *)buf->private, name, namlen); in __caseless_lookup() 1155 memcpy((char *)buf->private, name, namlen); in __caseless_lookup()
|
D | smb2pdu.c | 3932 static bool __query_dir(struct dir_context *ctx, const char *name, int namlen, in __query_dir() argument 3949 if (!match_pattern(name, namlen, priv->search_pattern)) in __query_dir() 3953 d_info->name_len = namlen; in __query_dir()
|
/Linux-v6.6/fs/nfs/ |
D | fs_context.c | 713 ctx->namlen = result.uint_32; in nfs_fs_context_parse_param() 1052 data->namlen = 0; in nfs23_parse_monolithic() 1128 ctx->namlen = data->namlen; in nfs23_parse_monolithic()
|
D | internal.h | 102 unsigned int namlen; member
|
D | client.c | 757 server->namelen = ctx->namlen; in nfs_init_server()
|