Lines Matching refs:fl
64 TAIL_ALLOC_OBJECT_CONST_PTR(struct_kernel_flock, fl); in test_flock_einval()
65 memset(fl, 0, sizeof(*fl)); in test_flock_einval()
66 fl->l_type = F_RDLCK; in test_flock_einval()
67 fl->l_start = (TYPEOF_FLOCK_OFF_T) 0xdefaced1facefeedULL; in test_flock_einval()
68 fl->l_len = (TYPEOF_FLOCK_OFF_T) 0xdefaced2cafef00dULL; in test_flock_einval()
70 invoke_test_syscall(0, cmd, fl); in test_flock_einval()
73 (intmax_t) fl->l_start, (intmax_t) fl->l_len, errstr); in test_flock_einval()
75 void *const bad_addr = (void *) fl + 1; in test_flock_einval()
88 TAIL_ALLOC_OBJECT_CONST_PTR(struct_kernel_flock64, fl); in test_flock64_einval()
89 memset(fl, 0, sizeof(*fl)); in test_flock64_einval()
90 fl->l_type = F_RDLCK; in test_flock64_einval()
91 fl->l_start = (TYPEOF_FLOCK_OFF_T) 0xdefaced1facefeedULL; in test_flock64_einval()
92 fl->l_len = (TYPEOF_FLOCK_OFF_T) 0xdefaced2cafef00dULL; in test_flock64_einval()
94 invoke_test_syscall(0, cmd, fl); in test_flock64_einval()
97 (intmax_t) fl->l_start, (intmax_t) fl->l_len, errstr); in test_flock64_einval()
99 void *const bad_addr = (void *) fl + 1; in test_flock64_einval()
111 TAIL_ALLOC_OBJECT_CONST_PTR(struct_kernel_flock, fl); in test_flock()
112 memset(fl, 0, sizeof(*fl)); in test_flock()
113 fl->l_type = F_RDLCK; in test_flock()
114 fl->l_len = FILE_LEN; in test_flock()
116 long rc = invoke_test_syscall(0, F_SETLK, fl); in test_flock()
123 invoke_test_syscall(0, F_GETLK, fl); in test_flock()
128 invoke_test_syscall(0, F_SETLKW, fl); in test_flock()
141 TAIL_ALLOC_OBJECT_CONST_PTR(struct_kernel_flock64, fl); in test_flock64_ofd()
142 memset(fl, 0, sizeof(*fl)); in test_flock64_ofd()
143 fl->l_type = F_RDLCK; in test_flock64_ofd()
144 fl->l_len = FILE_LEN; in test_flock64_ofd()
146 long rc = invoke_test_syscall(0, F_OFD_SETLK, fl); in test_flock64_ofd()
153 invoke_test_syscall(0, F_OFD_GETLK, fl); in test_flock64_ofd()
158 invoke_test_syscall(0, F_OFD_SETLKW, fl); in test_flock64_ofd()