Lines Matching full:safety
135 /// # Safety
141 // SAFETY: Guaranteed by the safety requirements of the function.
158 // SAFETY: By the type invariant, the pointer stored in `self` is valid.
176 /// # Safety
214 /// // SAFETY: Index is a valid entry in the table.
229 /// # Safety
235 // SAFETY: Guaranteed by the safety requirements of the function.
252 // SAFETY: By the type invariant, the pointer stored in `self` is valid and `index` is
253 // guaranteed to be valid by its safety requirements.
262 // SAFETY: By the type invariant, the pointer stored in `self` is valid and `index` is
263 // guaranteed to be valid by its safety requirements.
270 // SAFETY: By the type invariant, the pointer stored in `self` is valid and `index` is
271 // guaranteed to be valid by its safety requirements.
311 // SAFETY: The caller owns TableBox, it is safe to deref.
338 /// // SAFETY: Index values correspond to valid entries in the table.
425 /// # Safety
431 // SAFETY: Guaranteed by the safety requirements of the function.
440 /// # Safety
446 // SAFETY: Guaranteed by the safety requirements of the function.
462 // SAFETY: By the type invariant, the pointer stored in `self` is valid.
468 // SAFETY: By the type invariant, the pointer stored in `self` is valid.
475 // SAFETY: The C API guarantees that `cpu` refers to a valid CPU number.
527 // SAFETY: By the type invariant, the pointer stored in `self` is valid.
534 // SAFETY: By the type invariant, the pointer stored in `self` is valid.
542 // SAFETY: By the type invariant, the pointer stored in `self` is valid.
549 // SAFETY: The pointer to `cpus` is valid for writing and remains valid for the lifetime of
556 /// # Safety
622 // SAFETY: The `freq_table` is guaranteed to be valid for reading and remains valid for the
629 /// # Safety
644 // SAFETY: The data is earlier set from [`set_data`].
670 // SAFETY: The data is earlier set by us from [`set_data`]. It is safe to take
689 // SAFETY: It is safe to call `cpufreq_cpu_get` for any valid CPU.
693 // SAFETY: The `ptr` is guaranteed to be valid and remains valid for the lifetime of
716 // SAFETY: The underlying pointer is guaranteed to be valid for the lifetime of `self`.
919 /// SAFETY: `Registration` doesn't offer any methods or access to fields when shared between threads
924 /// SAFETY: Registration with and unregistration from the cpufreq subsystem can happen from any
1055 // SAFETY: `drv` is guaranteed to be valid for the lifetime of `Registration`.
1077 /// # Safety
1083 // SAFETY: The `ptr` is guaranteed to be valid by the contract with the C code for the
1095 /// # Safety
1100 // SAFETY: The `ptr` is guaranteed to be valid by the contract with the C code for the
1110 /// # Safety
1116 // SAFETY: The `ptr` is guaranteed to be valid by the contract with the C code for the
1125 /// # Safety
1131 // SAFETY: The `ptr` is guaranteed to be valid by the contract with the C code for the
1140 /// # Safety
1146 // SAFETY: The `ptr` is guaranteed to be valid by the contract with the C code for the
1155 /// # Safety
1161 // SAFETY: The `ptr` is guaranteed to be valid by the contract with the C code for the
1170 /// # Safety
1175 // SAFETY: The `ptr` is guaranteed to be valid by the contract with the C code for the
1183 /// # Safety
1189 // SAFETY: The `ptr` is guaranteed to be valid by the contract with the C code for the
1198 /// # Safety
1204 // SAFETY: The `ptr` is guaranteed to be valid by the contract with the C code for the
1213 /// # Safety
1223 // SAFETY: The `ptr` is guaranteed to be valid by the contract with the C code for the
1232 /// # Safety
1241 // SAFETY: The `ptr` is guaranteed to be valid by the contract with the C code for the
1245 // SAFETY: The C code guarantees that `index` corresponds to a valid entry in the
1255 /// # Safety
1263 // SAFETY: The `ptr` is guaranteed to be valid by the contract with the C code for the
1271 /// # Safety
1282 // SAFETY: The `ptr` is guaranteed to be valid by the contract with the C code for the
1290 /// # Safety
1298 // SAFETY: The `ptr` is guaranteed to be valid by the contract with the C code for the
1302 // SAFETY: The C code guarantees that `index` corresponds to a valid entry in the
1311 /// # Safety
1320 // SAFETY: The `ptr` is guaranteed to be valid by the contract with the C code for the
1324 // SAFETY: The C code guarantees that `index` corresponds to a valid entry in the
1334 /// # Safety
1338 // SAFETY: The C API guarantees that `cpu` refers to a valid CPU number.
1346 /// # Safety
1351 // SAFETY: The `ptr` is guaranteed to be valid by the contract with the C code for the
1359 /// # Safety
1364 // SAFETY: The C API guarantees that `cpu` refers to a valid CPU number.
1370 // SAFETY: `limit` is guaranteed by the C code to be valid.
1380 /// # Safety
1389 // SAFETY: The `ptr` is guaranteed to be valid by the contract with the C code for the
1398 /// # Safety
1403 // SAFETY: The `ptr` is guaranteed to be valid by the contract with the C code for the
1413 // SAFETY: `self.0` is guaranteed to be valid for the lifetime of `Registration`.