Lines Matching full:safety
52 // SAFETY: It is safe to call `mmdrop` on another thread than where `mmgrab` was called.
54 // SAFETY: All methods on `Mm` can be called in parallel from several threads.
57 // SAFETY: By the type invariants, this type is always refcounted.
61 // SAFETY: The pointer is valid since self is a reference. in inc_ref()
67 // SAFETY: The caller is giving up their refcount. in dec_ref()
88 // SAFETY: It is safe to call `mmput` on another thread than where `mmget` was called.
90 // SAFETY: All methods on `MmWithUser` can be called in parallel from several threads.
93 // SAFETY: By the type invariants, this type is always refcounted.
97 // SAFETY: The pointer is valid since self is a reference. in inc_ref()
103 // SAFETY: The caller is giving up their refcount. in dec_ref()
128 /// # Safety
134 // SAFETY: Caller promises that the pointer is valid for 'a. Layouts are compatible due to in from_raw()
142 // SAFETY: The pointer is valid since self is a reference. in mmget_not_zero()
146 // SAFETY: We just created an `mmget` refcount. in mmget_not_zero()
158 /// # Safety
164 // SAFETY: Caller promises that the pointer is valid for 'a. The layout is compatible due in from_raw()
179 // SAFETY: Calling `bindings::lock_vma_under_rcu` is always okay given an mm where in lock_vma_under_rcu()
184 // SAFETY: If `lock_vma_under_rcu` returns a non-null ptr, then it points at a in lock_vma_under_rcu()
202 // SAFETY: The pointer is valid since self is a reference. in mmap_read_lock()
215 // SAFETY: The pointer is valid since self is a reference. in mmap_read_trylock()
245 // SAFETY: By the type invariants we hold the mmap read guard, so we can safely call this in vma_lookup()
252 // SAFETY: We just checked that a vma was found, so the pointer references a valid vma. in vma_lookup()
265 // SAFETY: We hold the read lock by the type invariants. in drop()
294 // SAFETY: We hold the read lock by the type invariants. in drop()