Searched refs:FlockOperation (Results 1 – 3 of 3) sorted by relevance
/external/crosvm/sys_util/src/ |
D | lib.rs | 138 pub enum FlockOperation { enum 147 pub fn flock(file: &dyn AsRawFd, op: FlockOperation, nonblocking: bool) -> Result<()> { in flock() argument 149 FlockOperation::LockShared => libc::LOCK_SH, in flock() 150 FlockOperation::LockExclusive => libc::LOCK_EX, in flock() 151 FlockOperation::Unlock => libc::LOCK_UN, in flock()
|
/external/crosvm/qcow_utils/src/ |
D | qcow_utils.rs | 17 use sys_util::{flock, FileSetLen, FlockOperation}; 70 if let Err(_) = flock(&raw_image, FlockOperation::LockExclusive, true) { in expand_disk_image()
|
/external/crosvm/src/ |
D | linux.rs | 43 validate_raw_fd, warn, EventFd, FlockOperation, GuestAddress, GuestMemory, Killable, 337 FlockOperation::LockShared in create_block_device() 339 FlockOperation::LockExclusive in create_block_device()
|