Home
last modified time | relevance | path

Searched refs:FlockOperation (Results 1 – 3 of 3) sorted by relevance

/external/crosvm/sys_util/src/
Dlib.rs202 pub enum FlockOperation { enum
211 pub fn flock(file: &dyn AsRawFd, op: FlockOperation, nonblocking: bool) -> Result<()> { in flock() argument
213 FlockOperation::LockShared => libc::LOCK_SH, in flock()
214 FlockOperation::LockExclusive => libc::LOCK_EX, in flock()
215 FlockOperation::Unlock => libc::LOCK_UN, in flock()
/external/crosvm/qcow_utils/src/
Dqcow_utils.rs12 use base::{flock, FlockOperation};
63 if let Err(_) = flock(&raw_image, FlockOperation::LockExclusive, true) { in expand_disk_image()
/external/crosvm/src/
Dlinux.rs507 FlockOperation::LockShared in create_block_device()
509 FlockOperation::LockExclusive in create_block_device()