MCPcopy Create free account
hub / github.com/Starry-OS/StarryOS / get

Method get

core/src/futex.rs:195–203  ·  view source on GitHub ↗

Gets the wait queue associated with the given address.

(&self, key: &FutexKey)

Source from the content-addressed store, hash-verified

193
194 /// Gets the wait queue associated with the given address.
195 pub fn get(&self, key: &FutexKey) -> Option<FutexGuard<'_>> {
196 let key = key.as_usize();
197 let entry = self.0.lock().get(&key).cloned()?;
198 Some(FutexGuard {
199 table: self,
200 key,
201 inner: entry,
202 })
203 }
204
205 /// Gets the wait queue associated with the given address, or inserts a a
206 /// new one if it doesn't exist.

Callers 12

get_addr_rangeMethod · 0.45
get_by_keyMethod · 0.45
get_by_valueMethod · 0.45
get_inner_by_shmidMethod · 0.45
get_shmid_by_vaddrMethod · 0.45
get_shmids_by_pidMethod · 0.45
find_vaddr_by_shmidMethod · 0.45
get_taskFunction · 0.45
get_process_dataFunction · 0.45
get_process_groupFunction · 0.45
get_sessionFunction · 0.45
lookup_childMethod · 0.45

Calls 1

as_usizeMethod · 0.80

Tested by

no test coverage detected