Home
last modified time | relevance | path

Searched refs:loopinfoget (Results 1 – 6 of 6) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/ioctl/
Dioctl_loop03.c36 struct loop_info loopinfoget; in setup() local
38 memset(&loopinfoget, 0, sizeof(loopinfoget)); in setup()
49 SAFE_IOCTL(dev_fd, LOOP_GET_STATUS, &loopinfoget); in setup()
51 if (loopinfoget.lo_flags & LO_FLAGS_READ_ONLY) in setup()
Dioctl_loop04.c28 struct loop_info loopinfoget; in verify_ioctl_loop() local
30 memset(&loopinfoget, 0, sizeof(loopinfoget)); in verify_ioctl_loop()
37 SAFE_IOCTL(dev_fd, LOOP_GET_STATUS, &loopinfoget); in verify_ioctl_loop()
39 if (loopinfoget.lo_flags & LO_FLAGS_READ_ONLY) in verify_ioctl_loop()
Dioctl_loop02.c44 struct loop_info loopinfoget; in verify_ioctl_loop() local
65 memset(&loopinfoget, 0, sizeof(loopinfoget)); in verify_ioctl_loop()
67 SAFE_IOCTL(dev_fd, LOOP_GET_STATUS, &loopinfoget); in verify_ioctl_loop()
69 if (loopinfoget.lo_flags & ~LO_FLAGS_READ_ONLY) in verify_ioctl_loop()
70 tst_res(TFAIL, "lo_flags has unexpected %d flag", loopinfoget.lo_flags); in verify_ioctl_loop()
Dioctl_loop07.c50 struct loop_info64 loopinfo, loopinfoget; in verify_ioctl_loop() local
53 memset(&loopinfoget, 0, sizeof(loopinfoget)); in verify_ioctl_loop()
64 SAFE_IOCTL(dev_fd, LOOP_GET_STATUS64, &loopinfoget); in verify_ioctl_loop()
65 if (loopinfoget.lo_sizelimit == tc->set_sizelimit) in verify_ioctl_loop()
69 loopinfoget.lo_sizelimit, tc->set_sizelimit); in verify_ioctl_loop()
Dioctl_loop01.c47 struct loop_info loopinfo = {0}, loopinfoget = {0}; in check_loop_value() local
52 SAFE_IOCTL(dev_fd, LOOP_GET_STATUS, &loopinfoget); in check_loop_value()
54 if (loopinfoget.lo_flags & ~get_flag) in check_loop_value()
55 tst_res(TFAIL, "expect %d but got %d", get_flag, loopinfoget.lo_flags); in check_loop_value()
57 tst_res(TPASS, "get expected lo_flag %d", loopinfoget.lo_flags); in check_loop_value()
Dioctl_loop05.c40 struct loop_info loopinfoget; in check_dio_value() local
42 memset(&loopinfoget, 0, sizeof(loopinfoget)); in check_dio_value()
44 SAFE_IOCTL(dev_fd, LOOP_GET_STATUS, &loopinfoget); in check_dio_value()
47 if (loopinfoget.lo_flags & LO_FLAGS_DIRECT_IO) in check_dio_value()