Lines Matching defs:RequestDataWrapper
41 /// `RequestDataWrapper`. This structure lives in the private data area of the C
49 /// and valid `RequestDataWrapper<T>`.
158 /// Return a pointer to the [`RequestDataWrapper`] stored in the private area
164 /// [`Self`] plus size of [`RequestDataWrapper`].
165 pub(crate) unsafe fn wrapper_ptr(this: *mut Self) -> NonNull<RequestDataWrapper> {
170 unsafe { bindings::blk_mq_rq_to_pdu(request_ptr).cast::<RequestDataWrapper>() };
176 /// Return a reference to the [`RequestDataWrapper`] stored in the private
178 pub(crate) fn wrapper_ref(&self) -> &RequestDataWrapper {
190 pub(crate) struct RequestDataWrapper {
199 impl RequestDataWrapper {
243 let refcount = unsafe { &*RequestDataWrapper::refcount_ptr(wrapper_ptr) };