Lines Matching refs:flock
150 struct p9_flock flock; in v9fs_file_do_lock() local
167 memset(&flock, 0, sizeof(flock)); in v9fs_file_do_lock()
171 flock.type = P9_LOCK_TYPE_RDLCK; in v9fs_file_do_lock()
174 flock.type = P9_LOCK_TYPE_WRLCK; in v9fs_file_do_lock()
177 flock.type = P9_LOCK_TYPE_UNLCK; in v9fs_file_do_lock()
180 flock.start = fl->fl_start; in v9fs_file_do_lock()
182 flock.length = 0; in v9fs_file_do_lock()
184 flock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_do_lock()
185 flock.proc_id = fl->fl_pid; in v9fs_file_do_lock()
186 flock.client_id = utsname()->nodename; in v9fs_file_do_lock()
188 flock.flags = P9_LOCK_FLAGS_BLOCK; in v9fs_file_do_lock()
195 res = p9_client_lock_dotl(fid, &flock, &status); in v9fs_file_do_lock()
764 .flock = v9fs_file_flock_dotl,
787 .flock = v9fs_file_flock_dotl,