Searched refs:lock_fd (Results 1 - 7 of 7) sorted by relevance
/third_party/pulseaudio/src/pulsecore/ |
H A D | lock-autospawn.c | 57 static int lock_fd = -1; variable 86 pa_assert(lock_fd < 0); in ref() 133 pa_assert(lock_fd >= 0); in unref() 136 pa_close(lock_fd); in unref() 143 pa_unlock_lockfile(lf, lock_fd); in unref() 148 lock_fd = -1; in unref() 236 lock_fd = fd; in thread_func()
|
/third_party/alsa-utils/alsactl/ |
H A D | utils.c | 200 int err, stdio_flag, lock_fd = -EINVAL; in load_configuration() local 214 lock_fd = state_lock(file, LOCK_TIMEOUT); in load_configuration() 215 err = lock_fd >= 0 ? snd_input_stdio_open(&in, file, "r") : lock_fd; in load_configuration() 227 if (lock_fd >= 0) in load_configuration() 228 state_unlock(lock_fd, file); in load_configuration() 233 if (lock_fd >= 0) in load_configuration() 234 state_unlock(lock_fd, file); in load_configuration()
|
H A D | state.c | 1599 int lock_fd = -EINVAL; in save_state() local 1617 lock_fd = state_lock(file, LOCK_TIMEOUT); in save_state() 1618 if (lock_fd < 0) { in save_state() 1619 err = lock_fd; in save_state() 1666 if (!stdio && lock_fd >= 0) in save_state() 1667 state_unlock(lock_fd, file); in save_state() 1678 int err, finalerr = 0, open_failed, lock_fd; in load_state() local 1698 lock_fd = card_lock(iter.card, LOCK_TIMEOUT); in load_state() 1699 if (lock_fd < 0) { in load_state() 1700 finalerr = lock_fd; in load_state() [all...] |
H A D | alsactl.h | 56 int state_unlock(int lock_fd, const char *file); 58 int card_unlock(int lock_fd, int card_number);
|
/third_party/backends/backend/ |
H A D | qcam.h | 158 int lock_fd; /* used for locking protocol */ member
|
H A D | qcam.c | 279 if (q->lock_fd < 0) in qc_lock_wait() 284 q->lock_fd = open (lockfile, O_WRONLY | O_CREAT | O_EXCL, 0666); in qc_lock_wait() 285 if (q->lock_fd < 0) in qc_lock_wait() 296 if (fcntl (q->lock_fd, wait ? F_SETLKW : F_SETLK, &sfl) != 0) in qc_lock_wait() 332 if (q->lock_fd < 0) in qc_unlock() 342 if (fcntl (q->lock_fd, F_SETLK, &sfl) != 0) in qc_unlock() 351 close (q->lock_fd); in qc_unlock() 352 q->lock_fd = -1; in qc_unlock() 1125 q->lock_fd = -1; in attach()
|
/third_party/libinput/test/ |
H A D | litest.c | 1188 int lock_fd = -1; in inhibit() local 1221 rc = sd_bus_message_read(m, "h", &lock_fd); in inhibit() 1227 lock_fd = dup(lock_fd); in inhibit() 1234 return lock_fd; in inhibit()
|
Completed in 12 milliseconds