Searched refs:fd_lock (Results 1 – 2 of 2) sorted by relevance
365 static int lockfp(int fd, int *fd_lock) { in lockfp() argument368 *fd_lock = fd; in lockfp()372 static void unlockfp(int *fd_lock) { in unlockfp() argument373 if (*fd_lock < 0) in unlockfp()375 lockf(*fd_lock, F_ULOCK, 0); in unlockfp()376 *fd_lock = -1; in unlockfp()
582 _cleanup_close_ int fd_lock = -1; in worker_process_device() local599 r = worker_lock_whole_disk(dev, &fd_lock); in worker_process_device()