Lines Matching refs:filp
577 spl_getattr(struct file *filp, struct kstat *stat)
581 ASSERT(filp);
585 rc = vfs_getattr(&filp->f_path, stat, STATX_BASIC_STATS,
588 rc = vfs_getattr(&filp->f_path, stat);
590 rc = vfs_getattr(filp->f_path.mnt, filp->f_dentry, stat);
646 struct file *filp;
649 filp = filp_open(spl_hostid_path, 0, 0);
651 if (IS_ERR(filp))
654 error = spl_getattr(filp, &stat);
656 filp_close(filp, 0);
661 filp_close(filp, 0);
670 error = spl_kernel_read(filp, &value, sizeof (value), &off);
672 filp_close(filp, 0);
678 filp_close(filp, 0);