Lines Matching refs:create_file
84 static int create_file(const char *name, mode_t mode,
380 ret = create_file(unit, S_IFDIR|S_IRUGO|S_IXUGO, sb->s_root, &dir,
383 printk(KERN_ERR "create_file(%s) failed: %d\n", unit, ret);
388 ret = create_file("counters", S_IFREG|S_IRUGO, dir, &tmp,
391 printk(KERN_ERR "create_file(%s/counters) failed: %d\n",
395 ret = create_file("counter_names", S_IFREG|S_IRUGO, dir, &tmp,
398 printk(KERN_ERR "create_file(%s/counter_names) failed: %d\n",
402 ret = create_file("portcounter_names", S_IFREG|S_IRUGO, dir, &tmp,
405 printk(KERN_ERR "create_file(%s/%s) failed: %d\n",
414 ret = create_file(fname, S_IFREG|S_IRUGO, dir, &tmp,
417 printk(KERN_ERR "create_file(%s/%s) failed: %d\n",
424 ret = create_file(fname, S_IFREG|S_IRUGO, dir, &tmp,
427 printk(KERN_ERR "create_file(%s/%s) failed: %d\n",
433 ret = create_file("flash", S_IFREG|S_IWUSR|S_IRUGO, dir, &tmp,
436 printk(KERN_ERR "create_file(%s/flash) failed: %d\n",