/linux-2.4.37.9/fs/devfs/ |
D | base.c | 682 #define IS_HIDDEN(de) ( (de)->hide && !is_devfsd_or_child(fs_info) ) argument 719 # define VERIFY_ENTRY(de) \ argument 720 {if ((de) && (de)->magic_number != MAGIC_VALUE) \ 721 OOPS ("(%p): bad magic value: %x\n", (de), (de)->magic_number);} 722 # define WRITE_ENTRY_MAGIC(de,magic) (de)->magic_number = (magic) argument 727 # define VERIFY_ENTRY(de) argument 728 # define WRITE_ENTRY_MAGIC(de,magic) argument 819 struct devfs_entry *de; /* The name is generated with this */ member 898 static struct devfs_entry *devfs_get (struct devfs_entry *de) in devfs_get() argument 900 VERIFY_ENTRY (de); in devfs_get() [all …]
|
/linux-2.4.37.9/fs/proc/ |
D | inode.c | 25 static inline struct proc_dir_entry * de_get(struct proc_dir_entry *de) in de_get() argument 27 if (de) in de_get() 28 atomic_inc(&de->count); in de_get() 29 return de; in de_get() 35 static void de_put(struct proc_dir_entry *de) in de_put() argument 37 if (de) { in de_put() 39 if (!atomic_read(&de->count)) { in de_put() 40 printk("de_put: entry %s already free!\n", de->name); in de_put() 45 if (atomic_dec_and_test(&de->count)) { in de_put() 46 if (de->deleted) { in de_put() [all …]
|
D | generic.c | 27 int proc_match(int len, const char *name,struct proc_dir_entry * de) in proc_match() argument 29 if (!de || !de->low_ino) in proc_match() 31 if (de->namelen != len) in proc_match() 33 return !memcmp(name, de->name, len); in proc_match() 177 struct proc_dir_entry *de; in xlate_proc_name() local 180 de = &proc_root; in xlate_proc_name() 187 for (de = de->subdir; de ; de = de->next) { in xlate_proc_name() 188 if (proc_match(len, cp, de)) in xlate_proc_name() 191 if (!de) in xlate_proc_name() 196 *ret = de; in xlate_proc_name() [all …]
|
/linux-2.4.37.9/fs/hpfs/ |
D | dnode.c | 13 struct hpfs_dirent *de; in get_pos() local 16 for (de = dnode_first_de(d); de < de_end; de = de_next_de(de)) { in get_pos() 17 if (de == fde) return ((loff_t) d->self << 4) | (loff_t)i; in get_pos() 105 struct hpfs_dirent *de, *de_end, *dee = NULL, *deee = NULL; in dnode_pre_last_de() local 107 for (de = dnode_first_de(d); de < de_end; de = de_next_de(de)) { in dnode_pre_last_de() 108 deee = dee; dee = de; in dnode_pre_last_de() 115 struct hpfs_dirent *de, *de_end, *dee = NULL; in dnode_last_de() local 117 for (de = dnode_first_de(d); de < de_end; de = de_next_de(de)) { in dnode_last_de() 118 dee = de; in dnode_last_de() 125 struct hpfs_dirent *de; in set_last_pointer() local [all …]
|
D | dir.c | 53 struct hpfs_dirent *de; in hpfs_readdir() local 134 if (!(de = map_pos_dirent(inode, &filp->f_pos, &qbh))) { in hpfs_readdir() 138 if (de->first || de->last) { in hpfs_readdir() 140 …if (de->first && !de->last && (de->namelen != 2 || de ->name[0] != 1 || de->name[1] != 1)) hpfs_er… in hpfs_readdir() 141 …if (de->last && (de->namelen != 1 || de ->name[0] != 255)) hpfs_error(inode->i_sb, "hpfs_readdir: … in hpfs_readdir() 146 tempname = hpfs_translate_name(inode->i_sb, de->name, de->namelen, lc, de->not_8x3); in hpfs_readdir() 147 if (filldir(dirent, tempname, de->namelen, old_pos, de->fnode, DT_UNKNOWN) < 0) { in hpfs_readdir() 149 if (tempname != (char *)de->name) kfree(tempname); in hpfs_readdir() 154 if (tempname != (char *)de->name) kfree(tempname); in hpfs_readdir() 179 struct hpfs_dirent *de; in hpfs_lookup() local [all …]
|
/linux-2.4.37.9/fs/ufs/ |
D | dir.c | 40 const char * const name, struct ufs_dir_entry * de) in ufs_match() argument 42 if (len != ufs_get_de_namlen(sb, de)) in ufs_match() 44 if (!de->d_ino) in ufs_match() 46 return !memcmp(name, de->d_name, len); in ufs_match() 60 struct ufs_dir_entry * de; in ufs_readdir() local 93 de = (struct ufs_dir_entry *)(bh->b_data + i); in ufs_readdir() 100 de_reclen = fs16_to_cpu(sb, de->d_reclen); in ufs_readdir() 113 de = (struct ufs_dir_entry *) (bh->b_data + offset); in ufs_readdir() 115 if ((de->d_reclen == 0) || (ufs_get_de_namlen(sb, de) == 0)) { in ufs_readdir() 122 if (!ufs_check_dir_entry ("ufs_readdir", inode, de, in ufs_readdir() [all …]
|
/linux-2.4.37.9/fs/ext2/ |
D | dir.c | 183 struct ext2_dir_entry_2 * de) in ext2_match() argument 185 if (len != de->name_len) in ext2_match() 187 if (!de->inode) in ext2_match() 189 return !memcmp(name, de->name, len); in ext2_match() 203 ext2_dirent *de = (ext2_dirent*)(base + offset); in ext2_validate_entry() local 205 while ((char*)p < (char*)de) in ext2_validate_entry() 232 static inline void ext2_set_de_type(ext2_dirent *de, struct inode *inode) in ext2_set_de_type() argument 236 de->file_type = ext2_type_by_mode[(mode & S_IFMT)>>S_SHIFT]; in ext2_set_de_type() 238 de->file_type = 0; in ext2_set_de_type() 263 ext2_dirent *de; in ext2_readdir() local [all …]
|
/linux-2.4.37.9/fs/sysv/ |
D | dir.c | 89 struct sysv_dir_entry *de; in sysv_readdir() local 95 de = (struct sysv_dir_entry *)(kaddr+offset); in sysv_readdir() 97 for ( ;(char*)de <= limit; de++) { in sysv_readdir() 98 char *name = de->name; in sysv_readdir() 101 if (!de->inode) in sysv_readdir() 104 offset = (char *)de - kaddr; in sysv_readdir() 108 fs16_to_cpu(sb, de->inode), DT_UNKNOWN); in sysv_readdir() 151 struct sysv_dir_entry *de; in sysv_find_entry() local 165 de = (struct sysv_dir_entry *) kaddr; in sysv_find_entry() 167 for ( ; (char *) de <= kaddr ; de++) { in sysv_find_entry() [all …]
|
/linux-2.4.37.9/fs/minix/ |
D | dir.c | 67 static inline void *minix_next_entry(void *de, struct minix_sb_info *sbi) in minix_next_entry() argument 69 return (void*)((char*)de + sbi->s_dirsize); in minix_next_entry() 97 minix_dirent *de = (minix_dirent *)p; in minix_readdir() local 98 if (de->inode) { in minix_readdir() 100 unsigned l = strnlen(de->name,sbi->s_namelen); in minix_readdir() 103 over = filldir(dirent, de->name, l, in minix_readdir() 105 de->inode, DT_UNKNOWN); in minix_readdir() 147 struct minix_dir_entry *de; in minix_find_entry() local 158 de = (struct minix_dir_entry *) kaddr; in minix_find_entry() 160 for ( ; (char *) de <= kaddr ; de = minix_next_entry(de,sbi)) { in minix_find_entry() [all …]
|
/linux-2.4.37.9/fs/reiserfs/ |
D | namei.c | 16 static int bin_search_in_dir_item (struct reiserfs_dir_entry * de, loff_t off) in bin_search_in_dir_item() argument 18 struct item_head * ih = de->de_ih; in bin_search_in_dir_item() 19 struct reiserfs_de_head * deh = de->de_deh; in bin_search_in_dir_item() 35 de->de_entry_num = j; in bin_search_in_dir_item() 39 de->de_entry_num = lbound; in bin_search_in_dir_item() 45 static inline void set_de_item_location (struct reiserfs_dir_entry * de, struct path * path) in set_de_item_location() argument 47 de->de_bh = get_last_bh (path); in set_de_item_location() 48 de->de_ih = get_ih (path); in set_de_item_location() 49 de->de_deh = B_I_DEH (de->de_bh, de->de_ih); in set_de_item_location() 50 de->de_item_num = PATH_LAST_POSITION (path); in set_de_item_location() [all …]
|
/linux-2.4.37.9/fs/freevxfs/ |
D | vxfs_lookup.c | 84 vxfs_match(int len, const char * const name, struct vxfs_direct *de) in vxfs_match() argument 86 if (len != de->d_namelen) in vxfs_match() 88 if (!de->d_ino) in vxfs_match() 90 return !memcmp(name, de->d_name, len); in vxfs_match() 94 vxfs_next_entry(struct vxfs_direct *de) in vxfs_next_entry() argument 96 return ((struct vxfs_direct *)((char*)de + de->d_reclen)); in vxfs_next_entry() 137 struct vxfs_direct *de; in vxfs_find_entry() local 143 de = (struct vxfs_direct *)(baddr + VXFS_DIRBLKOV(dbp)); in vxfs_find_entry() 145 for (; (caddr_t)de <= limit; de = vxfs_next_entry(de)) { in vxfs_find_entry() 146 if (!de->d_reclen) in vxfs_find_entry() [all …]
|
/linux-2.4.37.9/fs/fat/ |
D | dir.c | 90 static void dump_de(struct msdos_dir_entry *de) 93 unsigned char *p = (unsigned char *) de; 191 struct msdos_dir_entry *de; in fat_search_long() local 205 if (fat_get_entry(inode,&cpos,&bh,&de,&i_pos) == -1) in fat_search_long() 209 if (de->name[0] == (__s8) DELETED_FLAG) in fat_search_long() 211 if (de->attr != ATTR_EXT && (de->attr & ATTR_VOLUME)) in fat_search_long() 213 if (de->attr != ATTR_EXT && IS_FREE(de->name)) in fat_search_long() 215 if (de->attr == ATTR_EXT) { in fat_search_long() 233 ds = (struct msdos_dir_slot *) de; in fat_search_long() 256 if (fat_get_entry(inode,&cpos,&bh,&de,&i_pos)<0) in fat_search_long() [all …]
|
/linux-2.4.37.9/include/linux/ |
D | devfs_fs_kernel.h | 63 extern void devfs_put (devfs_handle_t de); 68 extern void devfs_unregister (devfs_handle_t de); 80 extern int devfs_get_flags (devfs_handle_t de, unsigned int *flags); 81 extern int devfs_set_flags (devfs_handle_t de, unsigned int flags); 82 extern int devfs_get_maj_min (devfs_handle_t de, 85 extern int devfs_generate_path (devfs_handle_t de, char *path, int buflen); 86 extern void *devfs_get_ops (devfs_handle_t de); 87 extern void devfs_put_ops (devfs_handle_t de); 88 extern int devfs_set_file_size (devfs_handle_t de, unsigned long size); 89 extern void *devfs_get_info (devfs_handle_t de); [all …]
|
/linux-2.4.37.9/fs/ext3/ |
D | namei.c | 48 struct ext3_dir_entry_2 * de) in ext3_match() argument 50 if (len != de->name_len) in ext3_match() 52 if (!de->inode) in ext3_match() 54 return !memcmp(name, de->name, len); in ext3_match() 66 struct ext3_dir_entry_2 * de; in search_dirblock() local 72 de = (struct ext3_dir_entry_2 *) bh->b_data; in search_dirblock() 74 while ((char *) de < dlimit) { in search_dirblock() 78 if ((char *) de + namelen <= dlimit && in search_dirblock() 79 ext3_match (namelen, name, de)) { in search_dirblock() 82 dir, de, bh, offset)) in search_dirblock() [all …]
|
D | dir.c | 39 struct ext3_dir_entry_2 * de, in ext3_check_dir_entry() argument 44 const int rlen = le16_to_cpu(de->rec_len); in ext3_check_dir_entry() 50 else if (rlen < EXT3_DIR_REC_LEN(de->name_len)) in ext3_check_dir_entry() 52 else if (((char *) de - bh->b_data) + rlen > dir->i_sb->s_blocksize) in ext3_check_dir_entry() 54 else if (le32_to_cpu(de->inode) > in ext3_check_dir_entry() 63 (unsigned long) le32_to_cpu(de->inode), in ext3_check_dir_entry() 64 rlen, de->name_len); in ext3_check_dir_entry() 75 struct ext3_dir_entry_2 * de; in ext3_readdir() local 128 de = (struct ext3_dir_entry_2 *) in ext3_readdir() 136 if (le16_to_cpu(de->rec_len) < in ext3_readdir() [all …]
|
/linux-2.4.37.9/arch/ia64/sn/io/hwgdfs/ |
D | hcl.c | 238 vertex_hdl_t de, in hwgraph_generate_path() argument 242 return (devfs_generate_path(de, path, buflen)); in hwgraph_generate_path() 250 hwgraph_fastinfo_set(vertex_hdl_t de, arbitrary_info_t fastinfo) in hwgraph_fastinfo_set() argument 252 labelcl_info_replace_IDX(de, HWGRAPH_FASTINFO, fastinfo, NULL); in hwgraph_fastinfo_set() 261 hwgraph_fastinfo_get(vertex_hdl_t de) in hwgraph_fastinfo_get() argument 266 if (!de) { in hwgraph_fastinfo_get() 271 rv = labelcl_info_get_IDX(de, HWGRAPH_FASTINFO, &fastinfo); in hwgraph_fastinfo_get() 285 hwgraph_connectpt_set(vertex_hdl_t de, vertex_hdl_t connect_de) in hwgraph_connectpt_set() argument 289 if (!de) in hwgraph_connectpt_set() 292 rv = labelcl_info_connectpt_set(de, connect_de); in hwgraph_connectpt_set() [all …]
|
D | labelcl.c | 222 labelcl_info_add_LBL(vertex_hdl_t de, in labelcl_info_add_LBL() argument 234 if (de == NULL) in labelcl_info_add_LBL() 237 labelcl_info = devfs_get_info(de); in labelcl_info_add_LBL() 300 labelcl_info_remove_LBL(vertex_hdl_t de, in labelcl_info_remove_LBL() argument 313 if (de == NULL) in labelcl_info_remove_LBL() 316 labelcl_info = devfs_get_info(de); in labelcl_info_remove_LBL() 390 labelcl_info_replace_LBL(vertex_hdl_t de, in labelcl_info_replace_LBL() argument 402 if (de == NULL) in labelcl_info_replace_LBL() 405 labelcl_info = devfs_get_info(de); in labelcl_info_replace_LBL() 448 labelcl_info_get_LBL(vertex_hdl_t de, in labelcl_info_get_LBL() argument [all …]
|
/linux-2.4.37.9/fs/isofs/ |
D | dir.c | 43 int isofs_name_translate(struct iso_directory_record *de, char *new, struct inode *inode) in isofs_name_translate() argument 45 char * old = de->name; in isofs_name_translate() 46 int len = de->name_len[0]; in isofs_name_translate() 75 int get_acorn_filename(struct iso_directory_record * de, in get_acorn_filename() argument 80 int retnamlen = isofs_name_translate(de, retname, inode); in get_acorn_filename() 82 std = sizeof(struct iso_directory_record) + de->name_len[0]; in get_acorn_filename() 84 if ((*((unsigned char *) de) - std) != 32) return retnamlen; in get_acorn_filename() 85 chr = ((unsigned char *) de) + std; in get_acorn_filename() 88 if (((de->flags[0] & 2) == 0) && (chr[13] == 0xff) in get_acorn_filename() 116 struct iso_directory_record *de; in do_isofs_readdir() local [all …]
|
/linux-2.4.37.9/fs/qnx4/ |
D | namei.c | 35 struct qnx4_inode_entry *de; in qnx4_match() local 42 de = (struct qnx4_inode_entry *) (bh->b_data + *offset); in qnx4_match() 44 if ((de->di_status & QNX4_FILE_LINK) != 0) { in qnx4_match() 50 if (!len && (de->di_fname[0] == '.') && (de->di_fname[1] == '\0')) { in qnx4_match() 53 thislen = strlen( de->di_fname ); in qnx4_match() 59 if (strncmp(name, de->di_fname, len) == 0) { in qnx4_match() 60 if ((de->di_status & (QNX4_FILE_USED|QNX4_FILE_LINK)) != 0) { in qnx4_match() 111 struct qnx4_inode_entry *de; in qnx4_lookup() local 118 if (!(bh = qnx4_find_entry(len, dir, name, &de, &ino))) in qnx4_lookup() 121 if ((de->di_status & QNX4_FILE_LINK) == QNX4_FILE_LINK) { in qnx4_lookup() [all …]
|
/linux-2.4.37.9/arch/ia64/sn/io/hwgfs/ |
D | hcl.c | 236 vertex_hdl_t de, in hwgraph_generate_path() argument 240 return (hwgfs_generate_path(de, path, buflen)); in hwgraph_generate_path() 248 hwgraph_fastinfo_set(vertex_hdl_t de, arbitrary_info_t fastinfo) in hwgraph_fastinfo_set() argument 250 labelcl_info_replace_IDX(de, HWGRAPH_FASTINFO, fastinfo, NULL); in hwgraph_fastinfo_set() 259 hwgraph_fastinfo_get(vertex_hdl_t de) in hwgraph_fastinfo_get() argument 264 if (!de) { in hwgraph_fastinfo_get() 269 rv = labelcl_info_get_IDX(de, HWGRAPH_FASTINFO, &fastinfo); in hwgraph_fastinfo_get() 283 hwgraph_connectpt_set(vertex_hdl_t de, vertex_hdl_t connect_de) in hwgraph_connectpt_set() argument 287 if (!de) in hwgraph_connectpt_set() 290 rv = labelcl_info_connectpt_set(de, connect_de); in hwgraph_connectpt_set() [all …]
|
D | interface.c | 101 struct dentry *de, in path_len() argument 106 while (de != root) { in path_len() 107 len += de->d_name.len + 1; /* count the '/' */ in path_len() 108 de = de->d_parent; in path_len() 116 hwgfs_handle_t de, in hwgfs_generate_path() argument 124 if (unlikely(de == NULL)) in hwgfs_generate_path() 128 if (unlikely(de == hwgfs_root)) in hwgfs_generate_path() 132 len = path_len(de, hwgfs_root); in hwgfs_generate_path() 142 path -= de->d_name.len; in hwgfs_generate_path() 143 memcpy(path, de->d_name.name, de->d_name.len); in hwgfs_generate_path() [all …]
|
D | labelcl.c | 226 labelcl_info_add_LBL(vertex_hdl_t de, in labelcl_info_add_LBL() argument 238 if (de == NULL) in labelcl_info_add_LBL() 241 labelcl_info = hwgfs_get_info(de); in labelcl_info_add_LBL() 304 labelcl_info_remove_LBL(vertex_hdl_t de, in labelcl_info_remove_LBL() argument 317 if (de == NULL) in labelcl_info_remove_LBL() 320 labelcl_info = hwgfs_get_info(de); in labelcl_info_remove_LBL() 394 labelcl_info_replace_LBL(vertex_hdl_t de, in labelcl_info_replace_LBL() argument 406 if (de == NULL) in labelcl_info_replace_LBL() 409 labelcl_info = hwgfs_get_info(de); in labelcl_info_replace_LBL() 452 labelcl_info_get_LBL(vertex_hdl_t de, in labelcl_info_get_LBL() argument [all …]
|
/linux-2.4.37.9/Documentation/isdn/ |
D | CREDITS | 5 Thomas Bogend�rfer (tsbogend@bigbug.franken.de) 11 Henner Eisen (eis@baty.hanse.de) 14 Volker G�tz (volker@oops.franken.de) 18 Matthias Hessler (hessler@isdn4linux.de) 21 Bernhard Hailer (Bernhard.Hailer@lrz.uni-muenchen.de) 24 Michael 'Ghandi' Herold (michael@abadonna.franken.de) 27 Michael Hipp (Michael.Hipp@student.uni-tuebingen.de) 30 Karsten Keil (keil@isdn4linux.de) 34 Michael Knigge (knick@cove.han.de) 37 Andreas Kool (akool@Kool.f.EUnet.de) [all …]
|
/linux-2.4.37.9/fs/coda/ |
D | dir.c | 49 static int coda_dentry_revalidate(struct dentry *de, int); 205 static int coda_create(struct inode *dir, struct dentry *de, int mode) in coda_create() argument 208 const char *name=de->d_name.name; in coda_create() 209 int length=de->d_name.len; in coda_create() 227 d_drop(de); in coda_create() 233 d_drop(de); in coda_create() 239 d_instantiate(de, inode); in coda_create() 243 static int coda_mknod(struct inode *dir, struct dentry *de, int mode, int rdev) in coda_mknod() argument 246 const char *name=de->d_name.name; in coda_mknod() 247 int length=de->d_name.len; in coda_mknod() [all …]
|
/linux-2.4.37.9/fs/adfs/ |
D | dir_f.c | 235 adfs_dir2obj(struct object_info *obj, struct adfs_direntry *de) in adfs_dir2obj() argument 237 obj->name_len = adfs_readname(obj->name, de->dirobname, ADFS_F_NAME_LEN); in adfs_dir2obj() 238 obj->file_id = adfs_readval(de->dirinddiscadd, 3); in adfs_dir2obj() 239 obj->loadaddr = adfs_readval(de->dirload, 4); in adfs_dir2obj() 240 obj->execaddr = adfs_readval(de->direxec, 4); in adfs_dir2obj() 241 obj->size = adfs_readval(de->dirlen, 4); in adfs_dir2obj() 242 obj->attr = de->newdiratts; in adfs_dir2obj() 249 adfs_obj2dir(struct adfs_direntry *de, struct object_info *obj) in adfs_obj2dir() argument 251 adfs_writeval(de->dirinddiscadd, 3, obj->file_id); in adfs_obj2dir() 252 adfs_writeval(de->dirload, 4, obj->loadaddr); in adfs_obj2dir() [all …]
|