• Home
  • Raw
  • Download

Lines Matching refs:dir

50 static int qibfs_mknod(struct inode *dir, struct dentry *dentry,  in qibfs_mknod()  argument
55 struct inode *inode = new_inode(dir->i_sb); in qibfs_mknod()
74 inc_nlink(dir); in qibfs_mknod()
361 struct dentry *dir, *tmp; in add_cntr_files() local
367 ret = create_file(unit, S_IFDIR|S_IRUGO|S_IXUGO, sb->s_root, &dir, in add_cntr_files()
375 ret = create_file("counters", S_IFREG|S_IRUGO, dir, &tmp, in add_cntr_files()
382 ret = create_file("counter_names", S_IFREG|S_IRUGO, dir, &tmp, in add_cntr_files()
389 ret = create_file("portcounter_names", S_IFREG|S_IRUGO, dir, &tmp, in add_cntr_files()
401 ret = create_file(fname, S_IFREG|S_IRUGO, dir, &tmp, in add_cntr_files()
411 ret = create_file(fname, S_IFREG|S_IRUGO, dir, &tmp, in add_cntr_files()
420 ret = create_file("flash", S_IFREG|S_IWUSR|S_IRUGO, dir, &tmp, in add_cntr_files()
463 struct dentry *dir, *root; in remove_device_files() local
470 dir = lookup_one_len(unit, root, strlen(unit)); in remove_device_files()
472 if (IS_ERR(dir)) { in remove_device_files()
473 ret = PTR_ERR(dir); in remove_device_files()
478 inode_lock(d_inode(dir)); in remove_device_files()
479 remove_file(dir, "counters"); in remove_device_files()
480 remove_file(dir, "counter_names"); in remove_device_files()
481 remove_file(dir, "portcounter_names"); in remove_device_files()
486 remove_file(dir, fname); in remove_device_files()
489 remove_file(dir, fname); in remove_device_files()
492 remove_file(dir, "flash"); in remove_device_files()
493 inode_unlock(d_inode(dir)); in remove_device_files()
494 ret = simple_rmdir(d_inode(root), dir); in remove_device_files()
495 d_delete(dir); in remove_device_files()
496 dput(dir); in remove_device_files()