Home
last modified time | relevance | path

Searched refs:file_stat (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/tools/testing/selftests/mm/
Dhugetlb-soft-offline.c129 static int create_hugetlbfs_file(struct statfs *file_stat) in create_hugetlbfs_file() argument
139 memset(file_stat, 0, sizeof(*file_stat)); in create_hugetlbfs_file()
140 if (fstatfs(fd, file_stat)) { in create_hugetlbfs_file()
144 if (file_stat->f_type != HUGETLBFS_MAGIC) { in create_hugetlbfs_file()
159 struct statfs file_stat; in test_soft_offline_common() local
168 fd = create_hugetlbfs_file(&file_stat); in test_soft_offline_common()
172 hugepagesize_kb = file_stat.f_bsize / 1024; in test_soft_offline_common()
188 ret = do_soft_offline(fd, 2 * file_stat.f_bsize, expect_errno); in test_soft_offline_common()
Dhugetlb-read-hwpoison.c238 static int create_hugetlbfs_file(struct statfs *file_stat) in create_hugetlbfs_file() argument
248 memset(file_stat, 0, sizeof(*file_stat)); in create_hugetlbfs_file()
249 if (fstatfs(fd, file_stat)) { in create_hugetlbfs_file()
253 if (file_stat->f_type != HUGETLBFS_MAGIC) { in create_hugetlbfs_file()
267 struct statfs file_stat; in main() local
280 fd = create_hugetlbfs_file(&file_stat); in main()
284 status = test_hugetlb_read(fd, file_stat.f_bsize, in main()
292 fd = create_hugetlbfs_file(&file_stat); in main()
296 status = test_hugetlb_read_hwpoison(fd, file_stat.f_bsize, in main()
304 fd = create_hugetlbfs_file(&file_stat); in main()
[all …]
/linux-6.12.1/tools/testing/selftests/net/af_unix/
Ddiag_uid.c47 struct stat file_stat; in FIXTURE_SETUP() local
60 ret = fstat(self->unix_fd, &file_stat); in FIXTURE_SETUP()
63 self->inode = file_stat.st_ino; in FIXTURE_SETUP()
/linux-6.12.1/drivers/s390/char/
Dvmur.h38 __u8 file_stat; member
Dvmur.c619 if (fcb->file_stat & (FLG_SYSTEM_HOLD | FLG_USER_HOLD)) { in verify_uri_device()
638 if (!(fcb->file_stat & FLG_IN_USE)) { in verify_uri_device()
674 if (fcb->file_stat & FLG_CP_DUMP) in get_uri_file_reclen()