/kernel/linux/linux-5.10/include/linux/ |
D | unicode.h | 13 int utf8_validate(const struct unicode_map *um, const struct qstr *str); 16 const struct qstr *s1, const struct qstr *s2); 19 const struct qstr *s1, const struct qstr *s2); 21 const struct qstr *cf, 22 const struct qstr *s1); 24 int utf8_normalize(const struct unicode_map *um, const struct qstr *str, 27 int utf8_casefold(const struct unicode_map *um, const struct qstr *str, 31 struct qstr *str);
|
D | dcache.h | 47 struct qstr { struct 59 extern const struct qstr empty_name; argument 60 extern const struct qstr slash_name; 95 struct qstr d_name; 138 int (*d_hash)(const struct dentry *, struct qstr *); 140 unsigned int, const char *, const struct qstr *); 238 extern struct dentry * d_alloc(struct dentry *, const struct qstr *); 240 extern struct dentry * d_alloc_parallel(struct dentry *, const struct qstr *, 243 extern struct dentry * d_add_ci(struct dentry *, struct inode *, struct qstr *); 280 extern struct dentry *d_lookup(const struct dentry *, const struct qstr *); [all …]
|
/kernel/linux/linux-5.10/fs/hpfs/ |
D | dentry.c | 16 static int hpfs_hash_dentry(const struct dentry *dentry, struct qstr *qstr) in hpfs_hash_dentry() argument 20 unsigned l = qstr->len; in hpfs_hash_dentry() 22 if (l == 1) if (qstr->name[0]=='.') goto x; in hpfs_hash_dentry() 23 if (l == 2) if (qstr->name[0]=='.' || qstr->name[1]=='.') goto x; in hpfs_hash_dentry() 24 hpfs_adjust_length(qstr->name, &l); in hpfs_hash_dentry() 32 hash = partial_name_hash(hpfs_upcase(hpfs_sb(dentry->d_sb)->sb_cp_table,qstr->name[i]), hash); in hpfs_hash_dentry() 33 qstr->hash = end_name_hash(hash); in hpfs_hash_dentry() 39 unsigned int len, const char *str, const struct qstr *name) in hpfs_compare_dentry()
|
/kernel/linux/linux-5.10/fs/gfs2/ |
D | dir.h | 27 const struct qstr *filename, 29 extern int gfs2_dir_check(struct inode *dir, const struct qstr *filename, 31 extern int gfs2_dir_add(struct inode *inode, const struct qstr *filename, 41 extern int gfs2_dir_mvino(struct gfs2_inode *dip, const struct qstr *filename, 47 const struct qstr *filename, 59 static inline void gfs2_str2qstr(struct qstr *name, const char *fname) in gfs2_str2qstr() 67 static inline void gfs2_qstr2dirent(const struct qstr *name, u16 reclen, struct gfs2_dirent *dent) in gfs2_qstr2dirent() 79 extern struct qstr gfs2_qdot; 80 extern struct qstr gfs2_qdotdot;
|
/kernel/linux/linux-5.10/fs/autofs/ |
D | waitq.c | 224 autofs_find_wait(struct autofs_sb_info *sbi, const struct qstr *qstr) in autofs_find_wait() argument 229 if (wq->name.hash == qstr->hash && in autofs_find_wait() 230 wq->name.len == qstr->len && in autofs_find_wait() 232 !memcmp(wq->name.name, qstr->name, qstr->len)) in autofs_find_wait() 248 const struct qstr *qstr, in validate_request() argument 259 wq = autofs_find_wait(sbi, qstr); in validate_request() 293 wq = autofs_find_wait(sbi, qstr); in validate_request() 352 struct qstr qstr; in autofs_wait() local 393 qstr.len = sprintf(name, "%p", dentry); in autofs_wait() 395 qstr.len = autofs_getpath(sbi, dentry, name); in autofs_wait() [all …]
|
/kernel/linux/linux-5.10/fs/unicode/ |
D | utf8-core.c | 13 int utf8_validate(const struct unicode_map *um, const struct qstr *str) in utf8_validate() 24 const struct qstr *s1, const struct qstr *s2) in utf8_strncmp() 51 const struct qstr *s1, const struct qstr *s2) in utf8_strncasecmp() 81 const struct qstr *cf, in utf8_strncasecmp_folded() 82 const struct qstr *s1) in utf8_strncasecmp_folded() 105 int utf8_casefold(const struct unicode_map *um, const struct qstr *str, in utf8_casefold() 129 struct qstr *str) in utf8_casefold_hash() 149 int utf8_normalize(const struct unicode_map *um, const struct qstr *str, in utf8_normalize()
|
/kernel/linux/linux-5.10/fs/hmdfs/ |
D | hmdfs_dentryfile_cloud.c | 14 const struct qstr *qstr, struct file *filp) in hmdfs_init_dcache_lookup_ctx_cloud() argument 17 ctx->name = qstr; in hmdfs_init_dcache_lookup_ctx_cloud() 57 const struct qstr *qstr, struct hmdfs_dentry_cloud **insense_de, in find_in_block() argument 76 le16_to_cpu(de->namelen) == qstr->len && in find_in_block() 77 !memcmp(qstr->name, dentry_blk->filename[bit_pos], in find_in_block() 82 le16_to_cpu(de->namelen) == qstr->len && in find_in_block() 83 str_n_case_eq(qstr->name, dentry_blk->filename[bit_pos], in find_in_block()
|
D | hmdfs_dentryfile_cloud.h | 43 const struct qstr *name; 59 const struct qstr *qstr, struct file *filp);
|
D | inode_cloud.c | 25 struct qstr str; in make_ino_raw_cloud() 33 const struct qstr *qstr, in lookup_cloud_dentry() argument 51 hmdfs_init_dcache_lookup_ctx_cloud(&ctx, sbi, qstr, cache_item->filp); in lookup_cloud_dentry() 78 struct qstr qstr; in hmdfs_lookup_by_cloud() local 85 qstr.name = file_name; in hmdfs_lookup_by_cloud() 86 qstr.len = strlen(file_name); in hmdfs_lookup_by_cloud() 88 result = lookup_cloud_dentry(dentry, &qstr, CLOUD_DEVICE); in hmdfs_lookup_by_cloud()
|
/kernel/linux/linux-5.10/fs/adfs/ |
D | dir.c | 332 static int __adfs_compare(const unsigned char *qstr, u32 qlen, in __adfs_compare() argument 341 if (adfs_tolower(qstr[i]) != adfs_tolower(str[i])) in __adfs_compare() 347 static int adfs_dir_lookup_byname(struct inode *inode, const struct qstr *qstr, in adfs_dir_lookup_byname() argument 367 name = qstr->name; in adfs_dir_lookup_byname() 368 name_len = qstr->len; in adfs_dir_lookup_byname() 395 adfs_hash(const struct dentry *parent, struct qstr *qstr) in adfs_hash() argument 401 if (qstr->len > ADFS_SB(parent->d_sb)->s_namelen) in adfs_hash() 404 len = qstr->len; in adfs_hash() 405 name = qstr->name; in adfs_hash() 409 qstr->hash = end_name_hash(hash); in adfs_hash() [all …]
|
/kernel/linux/linux-5.10/fs/proc/ |
D | util.c | 4 unsigned name_to_int(const struct qstr *qstr) in name_to_int() argument 6 const char *name = qstr->name; in name_to_int() 7 int len = qstr->len; in name_to_int()
|
/kernel/linux/linux-5.10/fs/hfs/ |
D | hfs_fs.h | 181 extern int hfs_cat_create(u32, struct inode *, const struct qstr *, struct inode *); 182 extern int hfs_cat_delete(u32, struct inode *, const struct qstr *); 183 extern int hfs_cat_move(u32, struct inode *, const struct qstr *, 184 struct inode *, const struct qstr *); 185 extern void hfs_cat_build_key(struct super_block *, btree_key *, u32, const struct qstr *); 204 extern struct inode *hfs_new_inode(struct inode *, const struct qstr *, umode_t); 229 extern int hfs_hash_dentry(const struct dentry *, struct qstr *); 233 unsigned int len, const char *str, const struct qstr *name); 236 extern void hfs_asc2mac(struct super_block *, struct hfs_name *, const struct qstr *);
|
/kernel/linux/linux-5.10/fs/affs/ |
D | namei.c | 46 __affs_hash_dentry(const struct dentry *dentry, struct qstr *qstr, toupper_t toupper, bool notrunca… in __affs_hash_dentry() argument 48 const u8 *name = qstr->name; in __affs_hash_dentry() 53 retval = affs_check_name(qstr->name, qstr->len, notruncate); in __affs_hash_dentry() 58 len = min(qstr->len, AFFSNAMEMAX); in __affs_hash_dentry() 61 qstr->hash = end_name_hash(hash); in __affs_hash_dentry() 67 affs_hash_dentry(const struct dentry *dentry, struct qstr *qstr) in affs_hash_dentry() argument 69 return __affs_hash_dentry(dentry, qstr, affs_toupper, in affs_hash_dentry() 75 affs_intl_hash_dentry(const struct dentry *dentry, struct qstr *qstr) in affs_intl_hash_dentry() argument 77 return __affs_hash_dentry(dentry, qstr, affs_intl_toupper, in affs_intl_hash_dentry() 83 const char *str, const struct qstr *name, toupper_t toupper, in __affs_compare_dentry() [all …]
|
/kernel/linux/linux-5.10/fs/isofs/ |
D | inode.c | 38 static int isofs_hashi(const struct dentry *parent, struct qstr *qstr); 40 unsigned int len, const char *str, const struct qstr *name); 43 static int isofs_hashi_ms(const struct dentry *parent, struct qstr *qstr); 44 static int isofs_hash_ms(const struct dentry *parent, struct qstr *qstr); 46 unsigned int len, const char *str, const struct qstr *name); 48 unsigned int len, const char *str, const struct qstr *name); 175 isofs_hashi_common(const struct dentry *dentry, struct qstr *qstr, int ms) in isofs_hashi_common() argument 182 len = qstr->len; in isofs_hashi_common() 183 name = qstr->name; in isofs_hashi_common() 194 qstr->hash = end_name_hash(hash); in isofs_hashi_common() [all …]
|
D | namei.c | 21 struct qstr qstr; in isofs_cmp() local 22 qstr.name = compare; in isofs_cmp() 23 qstr.len = dlen; in isofs_cmp() 26 return dentry->d_op->d_compare(NULL, dentry->d_name.len, dentry->d_name.name, &qstr); in isofs_cmp()
|
/kernel/linux/linux-5.10/fs/ext2/ |
D | xattr.h | 109 const struct qstr *qstr); 112 const struct qstr *qstr) in ext2_init_security() argument
|
D | xattr_security.c | 48 const struct qstr *qstr) in ext2_init_security() argument 50 return security_inode_init_security(inode, dir, qstr, in ext2_init_security()
|
/kernel/linux/linux-5.10/fs/efivarfs/ |
D | super.c | 45 const struct qstr *name) in efivarfs_d_compare() 60 static int efivarfs_d_hash(const struct dentry *dentry, struct qstr *qstr) in efivarfs_d_hash() argument 63 const unsigned char *s = qstr->name; in efivarfs_d_hash() 64 unsigned int len = qstr->len; in efivarfs_d_hash() 76 qstr->hash = end_name_hash(hash); in efivarfs_d_hash() 89 struct qstr q; in efivarfs_alloc_dentry()
|
/kernel/linux/linux-5.10/fs/sharefs/ |
D | config.c | 19 struct qstr str; 25 struct qstr str; 39 static struct qstr make_qstr(const char *name) in make_qstr() 41 struct qstr str; in make_qstr() 121 static int query_##_attr_##_hash_entry(struct qstr *str) \ 140 static int insert_##_attr_##_hash_entry(struct qstr *str, int id) \ 171 static void remove_##_attr_##_hash_entry(struct qstr *str) \ 210 struct qstr str; \
|
/kernel/linux/linux-5.10/fs/hmdfs/authority/ |
D | config.c | 22 struct qstr str; 28 struct qstr str; 42 static struct qstr make_qstr(const char *name) in make_qstr() 44 struct qstr str; in make_qstr() 124 static int query_##_attr_##_hash_entry(struct qstr *str) \ 143 static int insert_##_attr_##_hash_entry(struct qstr *str, int id) \ 174 static void remove_##_attr_##_hash_entry(struct qstr *str) \ 213 struct qstr str; \
|
/kernel/linux/linux-5.10/fs/reiserfs/ |
D | xattr.h | 36 const struct qstr *qstr, 102 const struct qstr *qstr, in reiserfs_security_init() argument
|
/kernel/linux/linux-5.10/fs/jfs/ |
D | jfs_xattr.h | 53 const struct qstr *); 56 struct inode *dir, const struct qstr *qstr) in jfs_init_security() argument
|
/kernel/linux/linux-5.10/fs/fat/ |
D | namei_vfat.c | 111 static unsigned int vfat_striptail_len(const struct qstr *qstr) in vfat_striptail_len() argument 113 return __vfat_striptail_len(qstr->len, qstr->name); in vfat_striptail_len() 122 static int vfat_hash(const struct dentry *dentry, struct qstr *qstr) in vfat_hash() argument 124 qstr->hash = full_name_hash(dentry, qstr->name, vfat_striptail_len(qstr)); in vfat_hash() 134 static int vfat_hashi(const struct dentry *dentry, struct qstr *qstr) in vfat_hashi() argument 141 name = qstr->name; in vfat_hashi() 142 len = vfat_striptail_len(qstr); in vfat_hashi() 147 qstr->hash = end_name_hash(hash); in vfat_hashi() 156 unsigned int len, const char *str, const struct qstr *name) in vfat_cmpi() 175 unsigned int len, const char *str, const struct qstr *name) in vfat_cmp() [all …]
|
/kernel/linux/linux-5.10/fs/jffs2/ |
D | security.c | 44 const struct qstr *qstr) in jffs2_init_security() argument 46 return security_inode_init_security(inode, dir, qstr, in jffs2_init_security()
|
/kernel/linux/linux-5.10/fs/ext4/ |
D | xattr_security.c | 55 const struct qstr *qstr) in ext4_init_security() argument 57 return security_inode_init_security(inode, dir, qstr, in ext4_init_security()
|