Searched refs:lock (Results 1 - 10 of 10) sorted by relevance

/systemd/tmpfiles.d/
H A Dlegacy.conf13 d /run/lock 0755 root root -
14 L /var/lock - - - - ../run/lock
16 # /run/lock/subsys is used for serializing SysV service execution, and
19 d /run/lock/subsys 0755 root root -
H A Dx11.conf17 # Unlink the X11 lock files
18 r! /tmp/.X[0-9]*-lock
/systemd/src/login/
H A Dlogind-session.h153 int session_send_lock(Session *s, bool lock);
154 int session_send_lock_all(Manager *m, bool lock);
H A Dlogind-session-dbus.c234 "org.freedesktop.login1.lock-sessions",
657 int session_send_lock(Session *s, bool lock) { argument
670 lock ? "Lock" : "Unlock",
674 int session_send_lock_all(Manager *m, bool lock) { argument
684 k = session_send_lock(session, lock);
/systemd/src/bus-proxyd/
H A Dbus-xml-policy.h78 pthread_mutex_t lock; member in struct:SharedPolicy
H A Dbus-xml-policy.c1192 r = pthread_mutex_init(&sp->lock, NULL);
1208 /* pthread lock destruction is not fail-safe... meh! */
1210 pthread_mutex_destroy(&sp->lock);
1222 pthread_mutex_destroy(&sp->lock);
1261 pthread_mutex_lock(&sp->lock);
1263 pthread_mutex_unlock(&sp->lock);
1278 pthread_mutex_lock(&sp->lock);
1286 pthread_mutex_unlock(&sp->lock);
/systemd/src/firstboot/
H A Dfirstboot.c526 _cleanup_close_ int lock = -1; local
541 lock = take_etc_passwd_lock(arg_root);
542 if (lock < 0)
543 return log_error_errno(lock, "Failed to take a lock: %m");
/systemd/src/udev/cdrom_id/
H A Dcdrom_id.c189 static int media_lock(struct udev *udev, int fd, bool lock) argument
193 /* disable the kernel's lock logic */
198 err = ioctl(fd, CDROM_LOCKDOOR, lock ? 1 : 0);
850 { "lock-media", no_argument, NULL, 'l' },
858 bool lock = false; local
881 lock = true;
896 " -l,--lock-media lock the media (to enable eject request events)\n"
962 /* lock the media, so we enable eject button events */
963 if (lock
[all...]
/systemd/src/sysusers/
H A Dsysusers.c1807 _cleanup_close_ int lock = -1; local
1867 lock = take_etc_passwd_lock(arg_root);
1868 if (lock < 0) {
1869 log_error_errno(lock, "Failed to take lock: %m");
/systemd/test/
H A Dtest-functions441 for d in usr/bin usr/sbin bin etc lib "$libdir" sbin tmp usr var var/log dev proc sys sysroot root run run/lock run/initramfs; do
450 ln -sfn /run/lock "$initdir/var/lock"

Completed in 2545 milliseconds