Lines Matching full:safety
72 // SAFETY: All GEM objects are thread-safe.
75 // SAFETY: All GEM objects are thread-safe.
95 // SAFETY: `drm_gem_shmem_vm_ops` is a valid, static const on the C side.
123 // SAFETY: `obj.as_raw()` is guaranteed to be valid by the initialization above. in new()
126 // SAFETY: The arguments are all valid via the type invariants. in new()
129 // SAFETY: We never move out of `self`. in new()
132 // SAFETY: We're taking over the owned refcount from `drm_gem_shmem_init`. in new()
137 // SAFETY: We have yet to expose the new gem object outside of this function, so it is in new()
142 // SAFETY: We have yet to expose this object outside of this function, so we're guaranteed in new()
152 // SAFETY: `dev` will have been initialized in `Self::new()` by `drm_gem_shmem_init()`. in dev()
157 // SAFETY: in free_callback()
163 // SAFETY: in free_callback()
168 // SAFETY: in free_callback()
174 // SAFETY: We're recovering the Kbox<> we created in gem_create_object() in free_callback()
197 // SAFETY: in as_raw()
204 // SAFETY: The safety contract of from_gem_obj() guarantees that `obj` is contained within in from_raw()