MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / to_libc_val

Method to_libc_val

block/src/fcntl.rs:68–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66
67impl LockType {
68 pub const fn to_libc_val(self) -> libc::c_int {
69 match self {
70 Self::Unlock => libc::F_UNLCK as libc::c_int,
71 Self::Write => libc::F_WRLCK as libc::c_int,
72 Self::Read => libc::F_RDLCK as libc::c_int,
73 }
74 }
75}
76
77/// Describes the current state of a lock.

Callers 1

get_flockFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected