/linux/include/linux/ |
A 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);
|
A D | dcache.h | 48 struct qstr { struct 60 extern const struct qstr empty_name; argument 61 extern const struct qstr slash_name; 62 extern const struct qstr dotdot_name; 97 struct qstr d_name; 140 int (*d_hash)(const struct dentry *, struct qstr *); 142 unsigned int, const char *, const struct qstr *); 240 extern struct dentry * d_alloc(struct dentry *, const struct qstr *); 285 extern struct dentry *d_hash_and_lookup(struct dentry *, struct qstr *); 288 const struct qstr *name, unsigned *seq); [all …]
|
/linux/fs/hpfs/ |
A 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()
|
/linux/fs/autofs/ |
A D | waitq.c | 179 autofs_find_wait(struct autofs_sb_info *sbi, const struct qstr *qstr) in autofs_find_wait() argument 184 if (wq->name.hash == qstr->hash && in autofs_find_wait() 185 wq->name.len == qstr->len && in autofs_find_wait() 187 !memcmp(wq->name.name, qstr->name, qstr->len)) in autofs_find_wait() 203 const struct qstr *qstr, in validate_request() argument 214 wq = autofs_find_wait(sbi, qstr); in validate_request() 307 struct qstr qstr; in autofs_wait() local 349 qstr.name = name; in autofs_wait() 358 qstr.len = strlen(p); in autofs_wait() 361 qstr.hash = full_name_hash(dentry, qstr.name, qstr.len); in autofs_wait() [all …]
|
A D | root.c | 132 const struct qstr *name = &dentry->d_name; in autofs_lookup_active() 145 const struct qstr *qstr; in autofs_lookup_active() local 156 qstr = &active->d_name; in autofs_lookup_active() 163 if (qstr->len != len) in autofs_lookup_active() 165 if (memcmp(qstr->name, str, len)) in autofs_lookup_active() 187 const struct qstr *name = &dentry->d_name; in autofs_lookup_expiring() 200 const struct qstr *qstr; in autofs_lookup_expiring() local 216 qstr = &expiring->d_name; in autofs_lookup_expiring() 223 if (qstr->len != len) in autofs_lookup_expiring() 225 if (memcmp(qstr->name, str, len)) in autofs_lookup_expiring()
|
/linux/fs/gfs2/ |
A 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;
|
/linux/fs/unicode/ |
A 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()
|
/linux/fs/adfs/ |
A D | dir.c | 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() 419 const char *str, const struct qstr *qstr) in adfs_compare() argument [all …]
|
/linux/fs/isofs/ |
A D | inode.c | 38 static int isofs_hashi(const struct dentry *parent, struct qstr *qstr); 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); 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() 230 isofs_hashi(const struct dentry *dentry, struct qstr *qstr) in isofs_hashi() argument 252 len = qstr->len; in isofs_hash_common() 253 name = qstr->name; in isofs_hash_common() 265 isofs_hash_ms(const struct dentry *dentry, struct qstr *qstr) in isofs_hash_ms() argument [all …]
|
A 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()
|
/linux/fs/hfs/ |
A 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); 230 extern int hfs_hash_dentry(const struct dentry *, struct qstr *); 234 unsigned int len, const char *str, const struct qstr *name); 237 extern void hfs_asc2mac(struct super_block *, struct hfs_name *, const struct qstr *);
|
/linux/fs/proc/ |
A 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()
|
A D | generic.c | 399 struct qstr qstr; in __proc_create() local 403 qstr.name = fn; in __proc_create() 404 qstr.len = strlen(fn); in __proc_create() 405 if (qstr.len == 0 || qstr.len >= 256) { in __proc_create() 406 WARN(1, "name len %u\n", qstr.len); in __proc_create() 409 if (qstr.len == 1 && fn[0] == '.') { in __proc_create() 418 WARN(1, "create '/proc/%s' by hand\n", qstr.name); in __proc_create() 430 if (qstr.len + 1 <= SIZEOF_PDE_INLINE_NAME) { in __proc_create() 433 ent->name = kmalloc(qstr.len + 1, GFP_KERNEL); in __proc_create() 440 memcpy(ent->name, fn, qstr.len + 1); in __proc_create() [all …]
|
/linux/fs/affs/ |
A 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 …]
|
/linux/fs/efivarfs/ |
A 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()
|
/linux/fs/fat/ |
A 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 …]
|
/linux/fs/ext2/ |
A D | xattr.h | 109 const struct qstr *qstr); 112 const struct qstr *qstr) in ext2_init_security() argument
|
A D | xattr_security.c | 49 const struct qstr *qstr) in ext2_init_security() argument 51 return security_inode_init_security(inode, dir, qstr, in ext2_init_security()
|
/linux/fs/reiserfs/ |
A D | xattr.h | 37 const struct qstr *qstr, 103 const struct qstr *qstr, in reiserfs_security_init() argument
|
/linux/fs/jfs/ |
A D | jfs_xattr.h | 53 const struct qstr *); 56 struct inode *dir, const struct qstr *qstr) in jfs_init_security() argument
|
/linux/fs/jffs2/ |
A 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()
|
/linux/fs/ext4/ |
A D | xattr_security.c | 56 const struct qstr *qstr) in ext4_init_security() argument 58 return security_inode_init_security(inode, dir, qstr, in ext4_init_security()
|
A D | xattr.h | 198 struct inode *dir, const struct qstr *qstr); 201 struct inode *dir, const struct qstr *qstr) in ext4_init_security() argument
|
/linux/fs/ocfs2/ |
A D | xattr.h | 48 const struct qstr *, 87 const struct qstr *qstr);
|
/linux/fs/hfsplus/ |
A D | xattr_security.c | 69 const struct qstr *qstr) in hfsplus_init_security() argument 71 return security_inode_init_security(inode, dir, qstr, in hfsplus_init_security()
|