Lines Matching refs:get
39 /// assert_eq!(guard.get(0), None);
42 /// assert_eq!(guard.get(0).copied(), Some(0xdead));
45 /// assert_eq!(guard.get(0).copied(), Some(0xffff));
48 /// assert_eq!(guard.get(0).copied(), Some(0xbeef));
51 /// assert_eq!(guard.get(0), None);
75 unsafe { bindings::xa_destroy(self.xa.get()) };
110 bindings::xa_find(self.xa.get(), &mut index, usize::MAX, bindings::XA_PRESENT)
115 bindings::xa_find_after(self.xa.get(), &mut index, usize::MAX, bindings::XA_PRESENT)
124 if (unsafe { bindings::xa_trylock(self.xa.get()) } != 0) {
137 unsafe { bindings::xa_lock(self.xa.get()) };
160 unsafe { bindings::xa_unlock(self.xa.xa.get()) };
187 let ptr = unsafe { bindings::xa_load(self.xa.xa.get(), index) };
193 pub fn get(&self, index: usize) -> Option<T::Borrowed<'_>> {
213 let ptr = unsafe { bindings::__xa_erase(self.xa.xa.get(), index) }.cast();
247 unsafe { bindings::__xa_store(self.xa.xa.get(), index, new, gfp.as_raw()) }