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

Method l_len

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

Source from the content-addressed store, hash-verified

134 }
135
136 const fn l_len(self) -> u64 {
137 match self {
138 LockGranularity::WholeFile => 0, /* EOF */
139 LockGranularity::ByteRange(_, len) => len,
140 }
141 }
142}
143
144/// User-facing choice for the lock granularity.

Callers 1

get_flockFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected