Home
last modified time | relevance | path

Searched refs:xa (Results 1 – 2 of 2) sorted by relevance

/rust/helpers/
A Dxarray.c10 void rust_helper_xa_init_flags(struct xarray *xa, gfp_t flags) in rust_helper_xa_init_flags() argument
12 return xa_init_flags(xa, flags); in rust_helper_xa_init_flags()
15 int rust_helper_xa_trylock(struct xarray *xa) in rust_helper_xa_trylock() argument
17 return xa_trylock(xa); in rust_helper_xa_trylock()
20 void rust_helper_xa_lock(struct xarray *xa) in rust_helper_xa_lock() argument
22 return xa_lock(xa); in rust_helper_xa_lock()
25 void rust_helper_xa_unlock(struct xarray *xa) in rust_helper_xa_unlock() argument
27 return xa_unlock(xa); in rust_helper_xa_unlock()
/rust/kernel/
A Dxarray.rs58 xa: Opaque<bindings::xarray>, field
98 xa <- Opaque::ffi_init(|xa| unsafe { in new()
99 bindings::xa_init_flags(xa, flags) in new()
126 xa: self, in try_lock()
137 unsafe { bindings::xa_lock(self.xa.get()) }; in lock()
140 xa: self, in lock()
151 xa: &'a XArray<T>, field
160 unsafe { bindings::xa_unlock(self.xa.xa.get()) }; in drop()
186 let ptr = unsafe { bindings::xa_load(self.xa.xa.get(), index) }; in load()
212 let ptr = unsafe { bindings::__xa_erase(self.xa.xa.get(), index) }.cast(); in remove()
[all …]

Completed in 4 milliseconds