Lines Matching full:safety

40 ///     // SAFETY: The `ptr` is valid for writing and remains valid for the lifetime of the
54 /// # Safety
59 // SAFETY: Guaranteed by the safety requirements of the function.
68 /// # Safety
73 // SAFETY: Guaranteed by the safety requirements of the function.
93 // SAFETY: By the type invariant, `self.as_raw` is a valid argument to `__cpumask_set_cpu`.
104 // SAFETY: By the type invariant, `self.as_raw` is a valid argument to
114 // SAFETY: By the type invariant, `self.as_raw` is a valid argument to `cpumask_test_cpu`.
123 // SAFETY: By the type invariant, `self.as_raw` is a valid argument to `cpumask_setall`.
132 // SAFETY: By the type invariant, `self.as_raw` is a valid argument to `cpumask_empty`.
141 // SAFETY: By the type invariant, `self.as_raw` is a valid argument to `cpumask_full`.
150 // SAFETY: By the type invariant, `self.as_raw` is a valid argument to `cpumask_weight`.
159 // SAFETY: By the type invariant, `Self::as_raw` is a valid argument to `cpumask_copy`.
231 // SAFETY: It is safe to call this method as the reference to `ptr` is valid.
246 /// # Safety
256 // SAFETY: It is safe to call this method as the reference to `ptr` is valid.
270 /// # Safety
275 // SAFETY: Guaranteed by the safety requirements of the function.
284 /// # Safety
289 // SAFETY: Guaranteed by the safety requirements of the function.
298 // SAFETY: The returned cpumask_var is initialized right after this call.
312 // SAFETY: The caller owns CpumaskVar, so it is safe to deref the cpumask.
325 // SAFETY: The caller owns CpumaskVar, so it is safe to deref the cpumask.
338 // SAFETY: By the type invariant, `self.as_raw` is a valid argument to `free_cpumask_var`.