Lines Matching refs:lock
189 static int media_lock(struct udev *udev, int fd, bool lock)
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;
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 && cd_media) {
964 log_debug("PREVENT_ALLOW_MEDIUM_REMOVAL (lock)");